Skip to content

Commit

Permalink
MDL-74631 mod_lti: Remove </img>
Browse files Browse the repository at this point in the history
Remove illegal HTML tag.

Added example context to pass CI checks.
  • Loading branch information
leonstr committed May 3, 2022
1 parent 44e3680 commit 8a6e490
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion mod/lti/templates/tool_proxy_card.mustache
Expand Up @@ -39,6 +39,23 @@
* description
* instancecount
Example context (json):
{
"id": 1,
"name": "Test Tool",
"urls": {
"edit": "https://moodle.example.com/mod/lti/registersettings.php",
"icon": "https://moodle.example.com/theme/image.php/boost/lti/-1/icon"
},
"state": {
"text": "Accepted",
"configured": false,
"pending": false,
"rejected": false,
"accepted": true,
"unknown": false
}
}
}}
<div class="tool-card" data-proxy-id="{{id}}">
<div class="overlay-container">
Expand Down Expand Up @@ -69,7 +86,7 @@
<a class="delete" href="#" title="{{#str}} delete {{/str}}">{{#pix}} t/delete, core, {{#str}} delete {{/str}}{{/pix}}</a>
</div>
</div>
<img class="tool-card-icon" src="{{{urls.icon}}}" alt="{{name}}"></img>
<img class="tool-card-icon" src="{{{urls.icon}}}" alt="{{name}}">
<div class="contenteditable-container">
<h4 class="name">{{name}}</h4>
<div class="overlay-container">{{> mod_lti/loader }}</div>
Expand Down

0 comments on commit 8a6e490

Please sign in to comment.