Skip to content

Commit

Permalink
Merge branch 'MDL-68956' of https://github.com/Chocolate-lightning/mo…
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Jun 9, 2020
2 parents b0ae939 + 39bc6c4 commit f2d6a96
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template mod_h5pactivity/result/answer
@template mod_h5pactivity/local/result/answer
This template render all kind of answers/choice in a results table.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template mod_h5pactivity/result/header
@template mod_h5pactivity/local/result/header
This template will render a results header inside mod_h5pactivity results report.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template mod_h5pactivity/result/options
@template mod_h5pactivity/local/result/options
This template will render a choices table inside a H5P activity results report.
Expand Down Expand Up @@ -99,8 +99,8 @@
{{#options}}
<tr>
<td>{{description}}</td>
<td>{{#correctanswer}}{{>mod_h5pactivity/result/answer}}{{/correctanswer}}</td>
<td>{{#useranswer}}{{>mod_h5pactivity/result/answer}}{{/useranswer}}</td>
<td>{{#correctanswer}}{{>mod_h5pactivity/local/result/answer}}{{/correctanswer}}</td>
<td>{{#useranswer}}{{>mod_h5pactivity/local/result/answer}}{{/useranswer}}</td>
</tr>
{{/options}}
{{#score}}
Expand Down
6 changes: 3 additions & 3 deletions mod/h5pactivity/templates/result.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
Variables optional for this template:
* hasoptions - If an option table must be present
* optionslabel - The right label for available options on this result type
* options - An array of mod_h5pactivity/result/options compatible array
* options - An array of mod_h5pactivity/local/result/options compatible array
* content - Extra content in HTML
* track - Indicate if the result has displayable tracking
Expand Down Expand Up @@ -105,10 +105,10 @@

<div class="container-fluid w-100 my-0 p-0">
<div class="row w-100 py-3 px-1 m-0 p-md-3">
{{>mod_h5pactivity/result/header}}
{{>mod_h5pactivity/local/result/header}}
{{{content}}}
{{#hasoptions}}
{{>mod_h5pactivity/result/options}}
{{>mod_h5pactivity/local/result/options}}
{{/hasoptions}}
{{^track}}
<div class="alert alert-warning w-100" role="alert">
Expand Down

0 comments on commit f2d6a96

Please sign in to comment.