mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 17:33:43 +08:00
1c87bb7fe9
1. Use `this.` instead of `{{action}}` where applicable 2. Use `{{fn}}` instead of `@actionParam` where applicable 3. Use non-`@` versions of class/type/tabindex/aria-controls/aria-expanded 4. Remove `btn` class (it's added automatically to all DButtons) 5. Remove `type="button"` (it's the default) 6. Use `concat-class` helper
28 lines
823 B
Handlebars
28 lines
823 B
Handlebars
{{#if this.newFeatures}}
|
|
<div class="section-title">
|
|
<h2>{{replace-emoji (i18n "admin.dashboard.new_features.title")}}</h2>
|
|
</div>
|
|
|
|
<div class="section-body {{this.columnCountClass}}">
|
|
{{#each this.newFeatures as |feature|}}
|
|
<DashboardNewFeatureItem @item={{feature}} @tagName="" />
|
|
{{/each}}
|
|
</div>
|
|
<div class="section-footer">
|
|
{{#if this.releaseNotesLink}}
|
|
<a
|
|
rel="noopener noreferrer"
|
|
target="_blank"
|
|
href={{this.releaseNotesLink}}
|
|
class="btn btn-primary new-features-release-notes"
|
|
>
|
|
{{i18n "admin.dashboard.new_features.learn_more"}}
|
|
</a>
|
|
{{/if}}
|
|
<DButton
|
|
@label="admin.dashboard.new_features.dismiss"
|
|
@action={{this.dismissNewFeatures}}
|
|
class="btn-default new-features-dismiss"
|
|
/>
|
|
</div>
|
|
{{/if}} |