Merge branch 'MDL-81713-main' of https://github.com/junpataleta/moodle
[moodle.git] / lib / templates / help_icon.mustache
blob5d2f7d08b36cfb409825f9331585a76ab00e33e8
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" aria-label="{{#str}} help {{/str}}">
24   {{#pix}}help, core, {{{alt}}}{{/pix}}
25 </a>