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

View File

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

View File

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

View File

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