2013-09-17 23:04:44 +02:00
|
|
|
<ul class="nav nav-list topics_popover">
|
2020-05-15 16:08:25 +02:00
|
|
|
<li>
|
|
|
|
<p class="topic-name">
|
2020-06-20 17:50:19 +02:00
|
|
|
<i class="fa fa-chevron-right" aria-hidden="true" style="color: {{color}}"></i>
|
2020-05-15 16:08:25 +02:00
|
|
|
<b>{{topic_name}}</b>
|
|
|
|
</p>
|
|
|
|
</li>
|
|
|
|
|
2021-04-21 00:46:14 +02:00
|
|
|
<hr />
|
2020-05-15 16:08:25 +02:00
|
|
|
|
2023-06-14 11:41:48 +02:00
|
|
|
{{#if development}}
|
|
|
|
<li class="hidden-for-spectators">
|
|
|
|
<div class="tabs-container">
|
2023-08-15 08:59:46 +02:00
|
|
|
<div class="tab-option tippy-zulip-tooltip {{#if (eq visibility_policy all_visibility_policies.MUTED)}}selected-tab{{/if}}" data-visibility-policy="{{all_visibility_policies.MUTED}}" data-tippy-content="{{t 'Mute' }}" aria-label="{{t 'Mute' }}">
|
2023-06-14 11:41:48 +02:00
|
|
|
<i class="zulip-icon zulip-icon-mute-new"></i>
|
|
|
|
</div>
|
topic_popover: Add a 'Default' option and Show 'Unmute' conditionally.
The 'Unmute' option is available in not-muted streams only when
it is the current value.
Add a 'Default' option. Available in both muted and not-muted
streams. 'Default' corresponds to the 'INHERIT' visibility policy.
Summary:
* In muted streams:
Four options: Mute, Default, Unmute, and Follow.
* In not-muted streams:
Three options: Mute, Default, and Follow.
The fourth option, 'Unmute' is available only when it is the
current value.
Reason for conditional availability of 'Unmute' option:
In a not-muted stream, 'Unmute' has no special significance.
We only show 'Default' because both 'Default' and 'Unmute' has the
same behaviour in the not-muted stream.
This avoids the big design downside of showing this fourth
nearly-identical option to users who are just in the normal
default state of a normal topic within a normal stream
We only show the 'Unmute' option in the not-muted stream to users.
if they have followed a sequence of steps that led them to
'Unmute' state in a not-muted stream.
For example:
Mute a stream > Unmute a topic > Unmute the stream
By doing so, we avoid destroying information. The user, when
mutes the stream again, the topic will retain the 'Unmute' state.
New icons for Mute, Default, Unmute, and Follow.
2023-08-10 10:04:26 +02:00
|
|
|
<div class="tab-option tippy-zulip-tooltip {{#if (eq visibility_policy all_visibility_policies.INHERIT)}}selected-tab{{/if}}" data-visibility-policy="{{all_visibility_policies.INHERIT}}" data-tippy-content="{{t 'Default' }}" aria-label="{{t 'Default' }}">
|
|
|
|
<i class="zulip-icon zulip-icon-inherit"></i>
|
2023-06-14 11:41:48 +02:00
|
|
|
</div>
|
topic_popover: Add a 'Default' option and Show 'Unmute' conditionally.
The 'Unmute' option is available in not-muted streams only when
it is the current value.
Add a 'Default' option. Available in both muted and not-muted
streams. 'Default' corresponds to the 'INHERIT' visibility policy.
Summary:
* In muted streams:
Four options: Mute, Default, Unmute, and Follow.
* In not-muted streams:
Three options: Mute, Default, and Follow.
The fourth option, 'Unmute' is available only when it is the
current value.
Reason for conditional availability of 'Unmute' option:
In a not-muted stream, 'Unmute' has no special significance.
We only show 'Default' because both 'Default' and 'Unmute' has the
same behaviour in the not-muted stream.
This avoids the big design downside of showing this fourth
nearly-identical option to users who are just in the normal
default state of a normal topic within a normal stream
We only show the 'Unmute' option in the not-muted stream to users.
if they have followed a sequence of steps that led them to
'Unmute' state in a not-muted stream.
For example:
Mute a stream > Unmute a topic > Unmute the stream
By doing so, we avoid destroying information. The user, when
mutes the stream again, the topic will retain the 'Unmute' state.
New icons for Mute, Default, Unmute, and Follow.
2023-08-10 10:04:26 +02:00
|
|
|
{{#if (or stream_muted topic_unmuted)}}
|
|
|
|
<div class="tab-option tippy-zulip-tooltip {{#if (eq visibility_policy all_visibility_policies.UNMUTED)}}selected-tab{{/if}}" data-visibility-policy="{{all_visibility_policies.UNMUTED}}" data-tippy-content="{{t 'Unmute' }}" aria-label="{{t 'Unmute' }}">
|
|
|
|
<i class="zulip-icon zulip-icon-unmute-new"></i>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2023-08-15 08:59:46 +02:00
|
|
|
<div class="tab-option tippy-zulip-tooltip {{#if (eq visibility_policy all_visibility_policies.FOLLOWED)}}selected-tab{{/if}}" data-visibility-policy="{{all_visibility_policies.FOLLOWED}}" data-tippy-content="{{t 'Follow' }}" aria-label="{{t 'Follow' }}">
|
2023-06-14 11:41:48 +02:00
|
|
|
<i class="zulip-icon zulip-icon-follow"></i>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<hr/>
|
|
|
|
{{else}}
|
|
|
|
{{#if stream_muted}}
|
|
|
|
{{#unless topic_unmuted}}
|
|
|
|
<li class="hidden-for-spectators">
|
|
|
|
<a tabindex="0" class="sidebar-popover-unmute-topic" data-stream-id="{{ stream_id }}" data-topic-name="{{ topic_name }}">
|
|
|
|
<i class="zulip-icon zulip-icon-unmute" aria-hidden="true"></i>
|
|
|
|
{{t "Unmute topic"}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{else}}
|
|
|
|
<li class="hidden-for-spectators">
|
|
|
|
<a tabindex="0" class="sidebar-popover-remove-unmute" data-stream-id="{{ stream_id }}" data-topic-name="{{ topic_name }}">
|
|
|
|
<i class="zulip-icon zulip-icon-mute" aria-hidden="true"></i>
|
|
|
|
{{t "Mute topic"}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{/unless}}
|
2023-04-11 21:51:38 +02:00
|
|
|
{{else}}
|
2023-06-14 11:41:48 +02:00
|
|
|
{{#unless topic_muted}}
|
2023-04-11 21:51:38 +02:00
|
|
|
<li class="hidden-for-spectators">
|
2023-06-14 11:41:48 +02:00
|
|
|
<a tabindex="0" class="sidebar-popover-mute-topic" data-stream-id="{{ stream_id }}" data-topic-name="{{ topic_name }}">
|
2023-04-26 03:00:10 +02:00
|
|
|
<i class="zulip-icon zulip-icon-mute" aria-hidden="true"></i>
|
2023-04-11 21:51:38 +02:00
|
|
|
{{t "Mute topic"}}
|
|
|
|
</a>
|
|
|
|
</li>
|
2023-06-14 11:41:48 +02:00
|
|
|
{{else}}
|
|
|
|
<li class="hidden-for-spectators">
|
|
|
|
<a tabindex="0" class="sidebar-popover-remove-mute" data-stream-id="{{ stream_id }}" data-topic-name="{{ topic_name }}">
|
|
|
|
<i class="zulip-icon zulip-icon-unmute" aria-hidden="true"></i>
|
|
|
|
{{t "Unmute topic"}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{/unless}}
|
|
|
|
{{/if}}
|
2023-04-11 21:51:38 +02:00
|
|
|
{{/if}}
|
2021-03-08 09:25:25 +01:00
|
|
|
|
|
|
|
{{#if has_starred_messages}}
|
2021-09-20 08:23:25 +02:00
|
|
|
<li class="hidden-for-spectators">
|
2022-02-14 21:34:58 +01:00
|
|
|
<a tabindex="0" class="sidebar-popover-unstar-all-in-topic" data-stream-id="{{ stream_id }}" data-topic-name="{{ topic_name }}">
|
2021-03-08 09:25:25 +01:00
|
|
|
<i class="fa fa-star-o" aria-hidden="true"></i>
|
2023-03-15 23:51:27 +01:00
|
|
|
{{t "Unstar all messages in topic" }}
|
2021-03-08 09:25:25 +01:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
|
2021-09-20 08:23:25 +02:00
|
|
|
<li class="hidden-for-spectators">
|
2020-07-09 03:18:27 +02:00
|
|
|
<a tabindex="0" class="sidebar-popover-mark-topic-read" data-stream-id="{{ stream_id }}" data-topic-name="{{ topic_name }}">
|
2017-06-08 07:09:57 +02:00
|
|
|
<i class="fa fa-book" aria-hidden="true"></i>
|
2020-05-15 16:08:25 +02:00
|
|
|
{{t "Mark all messages as read"}}
|
2017-02-15 21:11:59 +01:00
|
|
|
</a>
|
2021-06-24 09:26:39 +02:00
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
2023-03-30 16:17:14 +02:00
|
|
|
<a tabindex="0" class="sidebar-popover-copy-link-to-topic" data-stream-id="{{ stream_id }}" data-topic-name="{{ topic_name }}" data-clipboard-text="{{ url }}">
|
2021-06-24 09:26:39 +02:00
|
|
|
<i class="fa fa-link" aria-hidden="true"></i>
|
|
|
|
{{t "Copy link to topic"}}
|
|
|
|
</a>
|
2017-02-15 21:11:59 +01:00
|
|
|
</li>
|
2016-05-08 15:20:51 +02:00
|
|
|
|
2021-05-13 18:17:57 +02:00
|
|
|
{{#if can_move_topic}}
|
|
|
|
<hr />
|
2020-05-15 16:08:25 +02:00
|
|
|
|
2019-01-18 17:40:54 +01:00
|
|
|
<li>
|
2021-05-13 18:17:57 +02:00
|
|
|
<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"}}
|
2019-01-18 17:40:54 +01:00
|
|
|
</a>
|
|
|
|
</li>
|
2023-04-14 18:58:10 +02:00
|
|
|
{{else if can_rename_topic}}
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<a tabindex="0" class="sidebar-popover-rename-topic-messages" data-stream-id="{{ stream_id }}" data-topic-name="{{ topic_name }}">
|
|
|
|
<i class="fa fa-pencil" aria-hidden="true"></i>
|
|
|
|
{{t "Rename topic"}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
|
2023-04-17 09:13:56 +02:00
|
|
|
{{#if can_rename_topic}}
|
2021-06-11 20:50:03 +02:00
|
|
|
<li>
|
|
|
|
<a tabindex="0" class="sidebar-popover-toggle-resolved" data-stream-id="{{ stream_id }}" data-topic-name="{{ topic_name }}">
|
|
|
|
<i class="fa fa-check" aria-hidden="true"></i>
|
|
|
|
{{# if topic_is_resolved }}
|
|
|
|
{{t "Mark as unresolved"}}
|
|
|
|
{{else}}
|
|
|
|
{{t "Mark as resolved"}}
|
|
|
|
{{/if}}
|
|
|
|
</a>
|
|
|
|
</li>
|
2019-01-18 17:40:54 +01:00
|
|
|
{{/if}}
|
2013-09-18 00:29:42 +02:00
|
|
|
|
2020-08-15 21:04:05 +02:00
|
|
|
{{#if is_realm_admin}}
|
2020-02-19 01:38:34 +01:00
|
|
|
<li>
|
2021-05-13 18:17:57 +02:00
|
|
|
<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"}}
|
2020-02-19 01:38:34 +01:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
2013-09-17 23:04:44 +02:00
|
|
|
</ul>
|