mirror of https://github.com/zulip/zulip.git
85 lines
2.5 KiB
Handlebars
85 lines
2.5 KiB
Handlebars
{{! Contents of the "message actions" popup }}
|
|
<ul class="nav nav-list actions_popover pull-right">
|
|
{{#if can_edit_message}}
|
|
<li>
|
|
<a href="#" class="popover_edit_message" data-msgid="{{message.id}}">
|
|
<i class="icon-vector-pencil"></i> Edit this message
|
|
</a>
|
|
</li>
|
|
{{/if}}
|
|
|
|
<li>
|
|
<a href="#" class="respond_button">
|
|
<i class="icon-vector-share-alt"></i>
|
|
{{#if message.is_stream}}
|
|
Reply to this topic on stream <b>{{message.stream}}</b>
|
|
{{else}}
|
|
Reply to this private message
|
|
{{/if}}
|
|
</a>
|
|
</li>
|
|
{{#unless message.is_private}}
|
|
<li>
|
|
<a href="" class="respond_personal_button">
|
|
<i class="icon-vector-user"></i> Reply to <b>{{message.sender_full_name}}</b> only
|
|
</a>
|
|
</li>
|
|
{{/unless}}
|
|
|
|
{{#if message.is_stream}}
|
|
<li>
|
|
<a href="{{ stream_subject_uri }}" class="popover_narrow_by_subject_button" data-msgid="{{message.id}}">
|
|
<i class="icon-vector-bullhorn"></i>
|
|
Narrow to this topic on stream <b>{{message.stream}}</b>
|
|
</a>
|
|
</li>
|
|
{{else}}
|
|
<li>
|
|
<a href="{{ pm_with_uri }}" class="popover_narrow_by_recipient_button" data-msgid="{{message.id}}">
|
|
<i class="icon-vector-user"></i>
|
|
Narrow to this private message conversation
|
|
</a>
|
|
</li>
|
|
{{/if}}
|
|
|
|
{{#if narrowed}}
|
|
<li>
|
|
<a href="{{ near_time_uri }}" class="popover_narrow_by_time_travel_button" data-msgid="{{message.id}}">
|
|
<i class="icon-vector-time"></i> Narrow to messages around this time
|
|
</a>
|
|
</li>
|
|
{{/if}}
|
|
|
|
<li>
|
|
<a href="{{ conversation_time_uri }}" class="popover_narrow_by_conversation_and_time" data-msgid="{{message.id}}">
|
|
<i class="icon-vector-link"></i> Narrow to this conversation and time
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="#" class="popover_toggle_collapse" data-msgid="{{message.id}}">
|
|
<i class="{{#if message.collapsed}}icon-vector-plus{{else}}icon-vector-minus{{/if}}"></i>
|
|
{{#if message.collapsed}}Un-collapse{{else}}Collapse{{/if}} this message
|
|
</a>
|
|
</li>
|
|
|
|
{{#if can_mute_topic}}
|
|
<li>
|
|
<a href="#" class="popover_mute_topic" data-msg-stream="{{message.stream}}" data-msg-topic="{{message.subject}}">
|
|
<i class="icon-vector-eye-close"></i>
|
|
Mute the topic <b>{{message.subject}}</b>
|
|
</a>
|
|
</li>
|
|
{{/if}}
|
|
|
|
{{#if can_unmute_topic}}
|
|
<li>
|
|
<a href="#" class="popover_unmute_topic" data-msg-stream="{{message.stream}}" data-msg-topic="{{message.subject}}">
|
|
<i class="icon-vector-eye-open"></i>
|
|
Unmute the topic <b>{{message.subject}}</b>
|
|
</a>
|
|
</li>
|
|
{{/if}}
|
|
|
|
</ul>
|