mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UI: refinements to topic footer buttons (#9780)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
{{pinned-options value=pinned topic=topic}}
|
||||
|
||||
<p class="reason">
|
||||
{{html-safe reasonText}}
|
||||
{{pinned-options value=pinned topic=topic}}
|
||||
<span class="text">{{html-safe reasonText}}</span>
|
||||
</p>
|
||||
|
||||
@@ -1,17 +1,28 @@
|
||||
{{topic-notifications-options
|
||||
value=notificationLevel
|
||||
topic=topic
|
||||
onChange=(action "changeTopicNotificationLevel")
|
||||
options=(hash
|
||||
showFullTitle=showFullTitle
|
||||
placement=placement
|
||||
preventsClickPropagation=true
|
||||
showCaret=showCaret
|
||||
)
|
||||
}}
|
||||
|
||||
{{#if appendReason}}
|
||||
<p class="reason">
|
||||
{{html-safe topic.details.notificationReasonText}}
|
||||
{{topic-notifications-options
|
||||
value=notificationLevel
|
||||
topic=topic
|
||||
onChange=(action "changeTopicNotificationLevel")
|
||||
options=(hash
|
||||
showFullTitle=showFullTitle
|
||||
placement=placement
|
||||
preventsClickPropagation=true
|
||||
showCaret=showCaret
|
||||
)
|
||||
}}
|
||||
<span class="text">{{html-safe topic.details.notificationReasonText}}</span>
|
||||
</p>
|
||||
{{else}}
|
||||
{{topic-notifications-options
|
||||
value=notificationLevel
|
||||
topic=topic
|
||||
onChange=(action "changeTopicNotificationLevel")
|
||||
options=(hash
|
||||
showFullTitle=showFullTitle
|
||||
placement=placement
|
||||
preventsClickPropagation=true
|
||||
showCaret=showCaret
|
||||
)
|
||||
}}
|
||||
{{/if}}
|
||||
|
||||
Reference in New Issue
Block a user