mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 12:54:58 +00:00
Before this change, we were using sequentially generated ids on the client side to identify streams. Now we just use the ids from the server. The goal here is to reduce the confusion of having two different ids attached to a stream. Also, not that it matters a ton, but this also means that the browser basically has an immutable id for each stream that is future-proof to reloads, multiple create_sub calls, etc. It also a bit easier to grep for ".stream_id" than ".id". (imported from commit 057f9e50dfee127edfe3facd52da93108241666a)
38 lines
1.1 KiB
Handlebars
38 lines
1.1 KiB
Handlebars
{{! Contents of the "stream actions" popup }}
|
|
<ul class="nav nav-list streams_popover" data-id="{{ stream.stream_id }}" data-name="{{ stream.name }}">
|
|
<li>
|
|
<a class="narrow_to_stream">
|
|
<i class="icon-vector-bullhorn"></i>
|
|
Narrow to stream <b>{{stream.name}}</b>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a class="toggle_home">
|
|
{{#if stream.in_home_view}}
|
|
<i class="icon-vector-eye-close"></i>
|
|
Mute the stream <b>{{stream.name}}</b>
|
|
{{else}}
|
|
<i class="icon-vector-eye-open"></i>
|
|
Unmute the stream <b>{{stream.name}}</b>
|
|
{{/if}}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a class="compose_to_stream">
|
|
<i class="icon-vector-edit"></i>
|
|
Compose a message to stream <b>{{stream.name}}</b>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a class="open_stream_settings">
|
|
<i class="icon-vector-cog"></i>
|
|
Stream settings
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<span class="colorpicker-container"><input stream_name="{{stream.name}}" class="colorpicker" type="text" value="{{stream.color}}" /></span>
|
|
<a class="custom_color">Choose custom color</a>
|
|
</li>
|
|
|
|
</ul>
|