Skip to content

Commit

Permalink
DEV: Use angle bracket syntax (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
janzenisaac committed Apr 28, 2023
1 parent 29a991e commit daf2a82
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
@@ -1,10 +1,10 @@
{{#if siteSettings.solved_enabled}}
{{combo-box
class="solved-status-filter"
content=statuses
value=status
valueProperty="value"
onChange=(action "changeStatus")
options=(hash caretDownIcon="caret-right" caretUpIcon="caret-down")
}}
<ComboBox
@class="solved-status-filter"
@content={{statuses}}
@value={{status}}
@valueProperty="value"
@options={{hash caretDownIcon="caret-right" caretUpIcon="caret-down"}}
@onChange={{(action "changeStatus")}}
/>
{{/if}}
Expand Up @@ -4,11 +4,11 @@
<section class="field">
<div class="enable-accepted-answer">
<label class="checkbox-label">
{{input
type="checkbox"
checked=(readonly category.enable_accepted_answers)
change=(action "onChangeSetting" value="target.checked")
}}
<Input
@type="checkbox"
@checked={{readonly category.enable_accepted_answers}}
{{on "change" (action "onChangeSetting" value="target.checked")}}
/>
{{i18n "solved.allow_accepted_answers"}}
</label>
</div>
Expand Down
@@ -1,6 +1,6 @@
{{#if show}}
{{#topic-navigation-popup popupId="solved-notice" dismissDuration=oneWeek}}
<TopicNavigationPopup @popupId="solved-notice" @dismissDuration={{oneWeek}}>
<h3>{{i18n "solved.no_answer.title"}}</h3>
<p>{{i18n "solved.no_answer.description"}}</p>
{{/topic-navigation-popup}}
</TopicNavigationPopup>
{{/if}}
@@ -1,4 +1,4 @@
{{#link-to "userActivity.solved"}}
<LinkTo @route="userActivity.solved">
{{d-icon "check-square"}}
{{i18n "solved.title"}}
{{/link-to}}
</LinkTo>
@@ -1,7 +1,7 @@
{{#link-to "userActivity.solved"}}
{{user-stat
value=model.solved_count
label="solved.solution_summary"
icon="check-square"
}}
{{/link-to}}
<LinkTo @route="userActivity.solved">
<UserStat
@value={{model.solved_count}}
@label="solved.solution_summary"
@icon="check-square"
/>
</LinkTo>

0 comments on commit daf2a82

Please sign in to comment.