UI: refinements to topic footer buttons (#9780)

This commit is contained in:
Joffrey JAFFEUX
2020-05-19 09:51:34 +02:00
committed by GitHub
parent 779dc30d2e
commit 3623a395dc
8 changed files with 67 additions and 102 deletions

View File

@@ -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>

View File

@@ -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}}