Skip to content

Commit

Permalink
Make codechecker happy
Browse files Browse the repository at this point in the history
  • Loading branch information
abias committed Nov 14, 2024
1 parent 6dc0d33 commit a797d66
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion amd/build/snippetsdetailsmodal.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion amd/build/snippetsdetailsmodal.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions amd/src/snippetsdetailsmodal.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ const buildModal = async(element) => {
title: element.getAttribute('data-title'),
description: element.getAttribute('data-description'),
image: element.getAttribute('data-image'),
source_badge: element.getAttribute('data-source-badge'),
goal_badge: element.getAttribute('data-goal-badge'),
scope_badge: element.getAttribute('data-scope-badge'),
sourcebadge: element.getAttribute('data-source-badge'),
goalbadge: element.getAttribute('data-goal-badge'),
scopebadge: element.getAttribute('data-scope-badge'),
creator: element.getAttribute('data-creator'),
usagenote: element.getAttribute('data-usagenote'),
id: element.getAttribute('data-id'),
Expand Down
24 changes: 12 additions & 12 deletions templates/snippetsdetailsmodal.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
{
"description": "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.",
"image": "https://raw.githubusercontent.com/moodle-an-hochschulen/moodle-theme_boost_union/main/pix/screenshot.png",
"goal_badge": "<span class="badge bg-primary text-light">Bugfix</span>",
"scope_badge": "<span class="badge bg-primary text-light">Global</span>",
"source_badge": "<span class="badge bg-primary text-light">Boost Union built-in</span>",
"goalbadge": "<span class="badge bg-primary text-light">Bugfix</span>",
"scopebadge": "<span class="badge bg-primary text-light">Global</span>",
"sourcebadge": "<span class="badge bg-primary text-light">Boost Union built-in</span>",
"code": "body { color: red; }",
"id": 42
}
Expand Down Expand Up @@ -55,24 +55,24 @@
<td>{{{creator}}}</td>
</tr>
{{/creator}}
{{#source_badge}}
{{#sourcebadge}}
<tr>
<th scope="row">{{#str}}snippetssource, theme_boost_union{{/str}}</th>
<td>{{{source_badge}}}</td>
<td>{{{sourcebadge}}}</td>
</tr>
{{/source_badge}}
{{#goal_badge}}
{{/sourcebadge}}
{{#goalbadge}}
<tr>
<th scope="row">{{#str}}snippetsgoal, theme_boost_union{{/str}}</th>
<td>{{{goal_badge}}}</td>
<td>{{{goalbadge}}}</td>
</tr>
{{/goal_badge}}
{{#scope_badge}}
{{/goalbadge}}
{{#scopebadge}}
<tr>
<th scope="row">{{#str}}snippetsscope, theme_boost_union{{/str}}</th>
<td>{{{scope_badge}}}</td>
<td>{{{scopebadge}}}</td>
</tr>
{{/scope_badge}}
{{/scopebadge}}
</tbody>
</table>
{{#code}}
Expand Down

0 comments on commit a797d66

Please sign in to comment.