DEV: apply ember-template-lint fixes (#126)

This commit is contained in:
Joffrey JAFFEUX 2021-04-27 12:01:53 +02:00 committed by GitHub
parent d3496ddae5
commit a6f911b907
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 10 deletions

View File

@ -1,6 +1,6 @@
{{#unless siteSettings.allow_solved_on_all_topics}} {{#unless siteSettings.allow_solved_on_all_topics}}
<h3>{{i18n 'solved.title'}}</h3> <h3>{{i18n "solved.title"}}</h3>
<section class='field'> <section class="field">
<div class="enable-accepted-answer"> <div class="enable-accepted-answer">
<label class="checkbox-label"> <label class="checkbox-label">
{{input {{input
@ -8,7 +8,7 @@
checked=(readonly category.enable_accepted_answers) checked=(readonly category.enable_accepted_answers)
change=(action "onChangeSetting" value="target.checked") change=(action "onChangeSetting" value="target.checked")
}} }}
{{i18n 'solved.allow_accepted_answers'}} {{i18n "solved.allow_accepted_answers"}}
</label> </label>
</div> </div>
</section> </section>

View File

@ -1,5 +1,5 @@
{{#if topic.accepted_answer}} {{#if topic.accepted_answer}}
<p class="solved"> <p class="solved">
{{{topic.acceptedAnswerHtml}}} {{html-safe topic.acceptedAnswerHtml}}
</p> </p>
{{/if}} {{/if}}

View File

@ -1,3 +1,3 @@
{{#link-to 'userActivity.solved'}} {{#link-to "userActivity.solved"}}
{{d-icon 'check-square'}} {{i18n 'solved.title'}} {{d-icon "check-square"}} {{i18n "solved.title"}}
{{/link-to}} {{/link-to}}

View File

@ -1,3 +1,7 @@
{{#link-to 'userActivity.solved'}} {{#link-to "userActivity.solved"}}
{{user-stat value=model.solved_count label="solved.solution_summary" icon="check-square"}} {{user-stat
value=model.solved_count
label="solved.solution_summary"
icon="check-square"
}}
{{/link-to}} {{/link-to}}