zulip/static/templates/stream_sidebar_actions.hbs

48 lines
1.7 KiB
Handlebars
Raw Normal View History

{{! Contents of the "stream actions" popup }}
<ul class="nav nav-list streams_popover" data-stream-id="{{ stream.stream_id }}" data-name="{{ stream.name }}">
<li>
<a class="open_stream_settings">
<i class="fa fa-cog" aria-hidden="true"></i>
{{t "Stream settings" }}
</a>
</li>
<li>
<a class="pin_to_top">
<i class="fa fa-thumb-tack stream-pin-icon" aria-hidden="true"></i>
{{#if stream.pin_to_top}}
{{#tr this}}Unpin stream <b>__stream.name__</b> from top{{/tr}}
{{else}}
{{#tr this}}Pin stream <b>__stream.name__</b> to top{{/tr}}
{{/if}}
</a>
</li>
<li>
<a class="mark_stream_as_read">
<i class="fa fa-book" aria-hidden="true"></i>
{{#tr this}}Mark all messages in <b>__stream.name__</b> as read{{/tr}}
</a>
</li>
<li>
<a class="toggle_home">
{{#if stream.is_muted}}
<i class="fa fa-bell" aria-hidden="true"></i>
{{#tr this}}Unmute the stream <b>__stream.name__</b>{{/tr}}
{{else}}
<i class="fa fa-bell-slash" aria-hidden="true"></i>
{{#tr this}}Mute the stream <b>__stream.name__</b>{{/tr}}
{{/if}}
</a>
</li>
<li>
<a class="popover_sub_unsub_button" data-name="{{stream.name}}">
<i class='fa fa-envelope' aria-hidden="true"></i>
2017-03-25 11:21:37 +01:00
{{t "Unsubscribe" }}
</a>
</li>
<li>
<span class="colorpicker-container"><input stream_id="{{stream.stream_id}}" class="colorpicker" type="text" value="{{stream.color}}" /></span>
<a class="custom_color">{{t "Choose custom color" }}</a>
</li>
</ul>