mirror of https://github.com/zulip/zulip.git
stream-popover: Change design of stream popover.
Extracts the stream name from the list items and display it in the popover title.
This commit is contained in:
parent
309ab0eb6f
commit
89539d6fb5
|
@ -55,6 +55,12 @@
|
|||
}
|
||||
|
||||
.streams_popover {
|
||||
.topic-name {
|
||||
text-align: center;
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.colorpicker-container {
|
||||
display: none;
|
||||
margin-right: 10px;
|
||||
|
|
|
@ -1,5 +1,18 @@
|
|||
{{! 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>
|
||||
|
@ -10,26 +23,26 @@
|
|||
<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}}
|
||||
{{t "Unpin stream from top"}}
|
||||
{{else}}
|
||||
{{#tr this}}Pin stream <b>__stream.name__</b> to top{{/tr}}
|
||||
{{t "Pin stream to top"}}
|
||||
{{/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}}
|
||||
{{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>
|
||||
{{#tr this}}Unmute the stream <b>__stream.name__</b>{{/tr}}
|
||||
<i class="fa fa-bell" aria-hidden="true"></i>
|
||||
{{t "Unmute stream"}}
|
||||
{{else}}
|
||||
<i class="fa fa-bell-slash" aria-hidden="true"></i>
|
||||
{{#tr this}}Mute the stream <b>__stream.name__</b>{{/tr}}
|
||||
<i class="fa fa-bell-slash" aria-hidden="true"></i>
|
||||
{{t "Mute stream"}}
|
||||
{{/if}}
|
||||
</a>
|
||||
</li>
|
||||
|
|
Loading…
Reference in New Issue