MDL-68898 core_contentbank: add link attribute to contentbank items
authorBas Brands <bas@moodle.com>
Tue, 2 Jun 2020 14:20:48 +0000 (16:20 +0200)
committerBas Brands <bas@moodle.com>
Tue, 2 Jun 2020 14:20:48 +0000 (16:20 +0200)
- this will reveil the fullname of the item which is useful when
the name is truncated

contentbank/templates/bankcontent.mustache

index 020b905..294ac41 100644 (file)
                         <div class="cb-thumbnail" role="img" aria-label="{{{ name }}}"
                         style="background-image: url('{{{ icon }}}');">
                         </div>
                         <div class="cb-thumbnail" role="img" aria-label="{{{ name }}}"
                         style="background-image: url('{{{ icon }}}');">
                         </div>
-                        <a href="{{{ link }}}" class="cb-link stretched-link">
+                        <a href="{{{ link }}}" class="cb-link stretched-link" title="{{{ name }}}">
                             <span class="cb-name word-break-all clamp-2" data-region="cb-content-name">
                                 {{{ name }}}
                             </span>
                             <span class="cb-name word-break-all clamp-2" data-region="cb-content-name">
                                 {{{ name }}}
                             </span>