discourse/app/assets/javascripts/select-kit/addon/components/topic-notifications-button.hbs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
822 B
Handlebars
Raw Normal View History

{{#if this.appendReason}}
<p class="reason">
<TopicNotificationsOptions
@value={{this.notificationLevel}}
@topic={{this.topic}}
@onChange={{action "changeTopicNotificationLevel"}}
@options={{hash
icon=this.icon
showFullTitle=this.showFullTitle
showCaret=this.showCaret
headerAriaLabel=(i18n "topic.notifications.title")
}}
/>
<span class="text">{{html-safe this.notificationReasonText}}</span>
</p>
{{else}}
<TopicNotificationsOptions
@value={{this.notificationLevel}}
@topic={{this.topic}}
@onChange={{action "changeTopicNotificationLevel"}}
@options={{hash
icon=this.icon
showFullTitle=this.showFullTitle
showCaret=this.showCaret
headerAriaLabel=(i18n "topic.notifications.title")
}}
/>
{{/if}}