Merge branch 'MDL-67410-37' of https://github.com/felicemcc/moodle into MOODLE_37_STABLE
[moodle.git] / lib / templates / help_icon.mustache
bloba52440bbdde9ab5b00e02f97a845e3f29ad9def3
1 {{!
2     @template core/help_icon
4     Help icon.
6     Example context (json):
7     {
8         "title": "Help with something",
9         "url": "http://example.org/help",
10         "linktext": "",
11         "icon":{
12             "attributes": [
13                 {"name": "class", "value": "iconhelp"},
14                 {"name": "src", "value": "../../../pix/help.svg"},
15                 {"name": "alt", "value": "Help icon"}
16             ]
17         }
18     }
20 <a class="btn btn-link p-0" role="button"
21     data-container="body" data-toggle="popover"
22     data-placement="{{#ltr}}right{{/ltr}}{{^ltr}}left{{/ltr}}" data-content="{{text}} {{completedoclink}}"
23     data-html="true" tabindex="0" data-trigger="focus">
24   {{#pix}}help, core, {{{alt}}}{{/pix}}
25 </a>