mirror of
https://github.com/zulip/zulip.git
synced 2026-07-09 21:21:47 +08:00
Previously, the "Move topic" option was only displayed to organization administrators, despite the new setting making who can move topics between streams configurable. Making this migration requires us to remove the text on the previous "Admin actions" divider, and just make it an hrule, to avoid confusing normal users, while still providing a hint that moving topics is a non-personal operation. We also change the ordering for consistency.
63 lines
2.0 KiB
Handlebars
63 lines
2.0 KiB
Handlebars
<ul class="nav nav-list topics_popover">
|
|
<li>
|
|
<p class="topic-name">
|
|
<i class="fa fa-chevron-right" aria-hidden="true" style="color: {{color}}"></i>
|
|
<b>{{topic_name}}</b>
|
|
</p>
|
|
</li>
|
|
|
|
<hr />
|
|
|
|
{{#unless topic_muted}}
|
|
<li>
|
|
<a tabindex="0" class="sidebar-popover-mute-topic" data-stream-id="{{ stream_id }}" data-topic-name="{{ topic_name }}">
|
|
<i class="fa fa-bell-slash" aria-hidden="true"></i>
|
|
{{t "Mute topic"}}
|
|
</a>
|
|
</li>
|
|
{{else}}
|
|
<li>
|
|
<a tabindex="0" class="sidebar-popover-unmute-topic" data-stream-id="{{ stream_id }}" data-topic-name="{{ topic_name }}">
|
|
<i class="fa fa-bell" aria-hidden="true"></i>
|
|
{{t "Unmute topic"}}
|
|
</a>
|
|
</li>
|
|
{{/unless}}
|
|
|
|
{{#if has_starred_messages}}
|
|
<li>
|
|
<a href="#" class="sidebar-popover-unstar-all-in-topic" data-stream-id="{{ stream_id }}" data-topic-name="{{ topic_name }}">
|
|
<i class="fa fa-star-o" aria-hidden="true"></i>
|
|
{{#tr}}Unstar all messages in topic{{/tr}}
|
|
</a>
|
|
</li>
|
|
{{/if}}
|
|
|
|
<li>
|
|
<a tabindex="0" class="sidebar-popover-mark-topic-read" data-stream-id="{{ stream_id }}" data-topic-name="{{ topic_name }}">
|
|
<i class="fa fa-book" aria-hidden="true"></i>
|
|
{{t "Mark all messages as read"}}
|
|
</a>
|
|
</li>
|
|
|
|
{{#if can_move_topic}}
|
|
<hr />
|
|
|
|
<li>
|
|
<a tabindex="0" class="sidebar-popover-move-topic-messages" data-stream-id="{{ stream_id }}" data-topic-name="{{ topic_name }}">
|
|
<i class="fa fa-arrows" aria-hidden="true"></i>
|
|
{{t "Move topic"}}
|
|
</a>
|
|
</li>
|
|
{{/if}}
|
|
|
|
{{#if is_realm_admin}}
|
|
<li>
|
|
<a tabindex="0" class="sidebar-popover-delete-topic-messages" data-stream-id="{{ stream_id }}" data-topic-name="{{ topic_name }}">
|
|
<i class="fa fa-trash" aria-hidden="true"></i>
|
|
{{t "Delete topic"}}
|
|
</a>
|
|
</li>
|
|
{{/if}}
|
|
</ul>
|