left_sidebar: Hide "Add streams" widget for spectators.

This commit is contained in:
Aman Agrawal 2020-10-05 20:20:26 +05:30 committed by Tim Abbott
parent c0f23569b8
commit b99a720012
2 changed files with 6 additions and 2 deletions

View File

@ -71,6 +71,10 @@ li.show-more-topics {
float: right;
}
.streams_filter_icon.web_public {
margin-right: 10px;
}
#streams_inline_cog {
margin-right: 10px;
}

View File

@ -60,10 +60,10 @@
</ul>
<div id="streams_list" class="zoom-out">
<div id="streams_header" class="zoom-in-hide"><h4 class="sidebar-title tippy-zulip-tooltip" data-tippy-content="{{ _('Filter streams') }} (q)">{{ _('STREAMS') }}</h4>
<span class="tippy-zulip-tooltip streams_inline_cog_wrapper" data-tippy-content="{{ _('Add streams') }}" data-tippy-placement="top">
<span class="tippy-zulip-tooltip streams_inline_cog_wrapper hidden-for-spectators" data-tippy-content="{{ _('Add streams') }}" data-tippy-placement="top">
<i id="streams_inline_cog" class='fa fa-plus' aria-hidden="true" ></i>
</span>
<i class='streams_filter_icon fa fa-filter tippy-zulip-tooltip' aria-hidden="true" data-tippy-content="{{ _('Filter streams') }} (q)" data-tippy-placement="top"></i>
<i class="streams_filter_icon fa fa-filter tippy-zulip-tooltip" aria-hidden="true" data-tippy-content="{{ _('Filter streams') }} (q)" data-tippy-placement="top"></i>
<div class="input-append notdisplayed stream_search_section">
<input class="stream-list-filter home-page-input" type="text" autocomplete="off" placeholder="{{ _('Filter streams') }}" />
<button type="button" class="btn clear_search_button" id="clear_search_stream_button">