Skip to content

Commit

Permalink
Make codechecker happier
Browse files Browse the repository at this point in the history
  • Loading branch information
abias committed Feb 19, 2024
1 parent 25becce commit 094cc57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,20 @@
* Adding unique ID to completion span to handle data value changes within the 'Display activity type icons in course index' feature.
}}
{{#iscomplete}}
<span id="courseindex-cmicon-cplid-{{uniqid}}" class="completioninfo completion_complete" data-for="cm_completion" data-value="{{state}}">
<span id="courseindex-cmicon-cplid-{{uniqid}}-complete" class="completioninfo completion_complete" data-for="cm_completion" data-value="{{state}}">
{{#pix}} t/completion_complete, moodle, {{#str}} done, completion {{/str}} {{/pix}}
</span>
{{/iscomplete}}
{{#isincomplete}}
<span id="courseindex-cmicon-cplid-{{uniqid}}" class="completioninfo completion_incomplete" data-for="cm_completion" data-value="{{state}}">
<span id="courseindex-cmicon-cplid-{{uniqid}}-incomplete" class="completioninfo completion_incomplete" data-for="cm_completion" data-value="{{state}}">
{{#pix}} t/completion_incomplete, moodle, {{#str}} todo, completion {{/str}} {{/pix}}
</span>
{{/isincomplete}}
{{#isfail}}
<span id="courseindex-cmicon-cplid-{{uniqid}}" class="completioninfo completion_fail" data-for="cm_completion" data-value="{{state}}">
<span id="courseindex-cmicon-cplid-{{uniqid}}-fail" class="completioninfo completion_fail" data-for="cm_completion" data-value="{{state}}">
{{#pix}} t/completion_fail, moodle, {{#str}} failed, completion {{/str}} {{/pix}}
</span>
{{/isfail}}
{{^hasstate}}
<span id="courseindex-cmicon-cplid-{{uniqid}}" class="completioninfo completion_none" data-for="cm_completion" data-value="{{state}}"></span>
<span id="courseindex-cmicon-cplid-{{uniqid}}-none" class="completioninfo completion_none" data-for="cm_completion" data-value="{{state}}"></span>
{{/hasstate}}
8 changes: 2 additions & 6 deletions templates/localloginform.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,11 @@
<input type="hidden" name="logintoken" value="{{logintoken}}">
<div class="login-form-username form-group">
<label for="username" class="sr-only">{{#str}}username{{/str}}</label>
<input type="text" name="username" id="username" {{!
!}}class="form-control form-control-lg"{{!
!}}placeholder="{{#cleanstr}}username{{/cleanstr}}">
<input type="text" name="username" id="username" class="form-control form-control-lg" placeholder="{{#cleanstr}}username{{/cleanstr}}">
</div>
<div class="login-form-password form-group">
<label for="password" class="sr-only">{{#str}} password {{/str}}</label>
<input type="password" name="password" id="password" value="" {{!
!}}class="form-control form-control-lg" {{!
!}}placeholder="{{#cleanstr}}password{{/cleanstr}}">
<input type="password" name="password" id="password" value="" class="form-control form-control-lg" placeholder="{{#cleanstr}}password{{/cleanstr}}">
</div>
<div class="login-form-submit form-group">
<button class="btn btn-primary btn-lg" type="submit" id="loginbtn">{{#str}}login{{/str}}</button>
Expand Down

0 comments on commit 094cc57

Please sign in to comment.