DEV: Use angle bracket syntax (#235)

This commit is contained in:
Isaac Janzen 2023-04-28 08:14:49 -05:00 committed by GitHub
parent 29a991e60f
commit daf2a823e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 24 deletions

View File

@ -1,10 +1,10 @@
{{#if siteSettings.solved_enabled}} {{#if siteSettings.solved_enabled}}
{{combo-box <ComboBox
class="solved-status-filter" @class="solved-status-filter"
content=statuses @content={{statuses}}
value=status @value={{status}}
valueProperty="value" @valueProperty="value"
onChange=(action "changeStatus") @options={{hash caretDownIcon="caret-right" caretUpIcon="caret-down"}}
options=(hash caretDownIcon="caret-right" caretUpIcon="caret-down") @onChange={{(action "changeStatus")}}
}} />
{{/if}} {{/if}}

View File

@ -4,11 +4,11 @@
<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
type="checkbox" @type="checkbox"
checked=(readonly category.enable_accepted_answers) @checked={{readonly category.enable_accepted_answers}}
change=(action "onChangeSetting" value="target.checked") {{on "change" (action "onChangeSetting" value="target.checked")}}
}} />
{{i18n "solved.allow_accepted_answers"}} {{i18n "solved.allow_accepted_answers"}}
</label> </label>
</div> </div>

View File

@ -1,6 +1,6 @@
{{#if show}} {{#if show}}
{{#topic-navigation-popup popupId="solved-notice" dismissDuration=oneWeek}} <TopicNavigationPopup @popupId="solved-notice" @dismissDuration={{oneWeek}}>
<h3>{{i18n "solved.no_answer.title"}}</h3> <h3>{{i18n "solved.no_answer.title"}}</h3>
<p>{{i18n "solved.no_answer.description"}}</p> <p>{{i18n "solved.no_answer.description"}}</p>
{{/topic-navigation-popup}} </TopicNavigationPopup>
{{/if}} {{/if}}

View File

@ -1,4 +1,4 @@
{{#link-to "userActivity.solved"}} <LinkTo @route="userActivity.solved">
{{d-icon "check-square"}} {{d-icon "check-square"}}
{{i18n "solved.title"}} {{i18n "solved.title"}}
{{/link-to}} </LinkTo>

View File

@ -1,7 +1,7 @@
{{#link-to "userActivity.solved"}} <LinkTo @route="userActivity.solved">
{{user-stat <UserStat
value=model.solved_count @value={{model.solved_count}}
label="solved.solution_summary" @label="solved.solution_summary"
icon="check-square" @icon="check-square"
}} />
{{/link-to}} </LinkTo>