zulip/static/templates/stream_sidebar_actions.hbs

64 lines
2.0 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>
<p class="topic-name">
<span id="stream_sidebar_privacy_swatch_{{stream.stream_id}}" class="stream-privacy filter-icon" style="color: {{stream.color}}">
{{> stream_privacy
invite_only=stream.invite_only
is_web_public=stream.is_web_public }}
</span>
<b>{{stream.name}}</b>
</p>
</li>
<hr>
<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}}
{{t "Unpin stream from top"}}
{{else}}
{{t "Pin stream to top"}}
{{/if}}
</a>
</li>
<li>
<a class="mark_stream_as_read">
<i class="fa fa-book" aria-hidden="true"></i>
{{t "Mark all messages as read"}}
</a>
</li>
<li>
<a class="toggle_home">
{{#if stream.is_muted}}
<i class="fa fa-bell" aria-hidden="true"></i>
{{t "Unmute stream"}}
{{else}}
<i class="fa fa-bell-slash" aria-hidden="true"></i>
{{t "Mute stream"}}
{{/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">
<i class="fa fa-eyedropper" aria-hidden="true"></i>
{{t "Choose custom color" }}
</a>
</li>
</ul>