Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

left_sidebar: Hide "Add streams" widget for spectators.

Aman Agrawalb99a720012a7
diff --git a/static/styles/left_sidebar.css b/static/styles/left_sidebar.css
index 9184ff356d2..5604d728f0b 100644
--- a/static/styles/left_sidebar.css
+++ b/static/styles/left_sidebar.css
@@ -71,6 +71,10 @@ li.show-more-topics {
float: right;
}
+.streams_filter_icon.web_public {
+ margin-right: 10px;
+}
+
#streams_inline_cog {
margin-right: 10px;
}
diff --git a/templates/zerver/app/left_sidebar.html b/templates/zerver/app/left_sidebar.html
index d2b880c6148..a1f7a293c0f 100644
--- a/templates/zerver/app/left_sidebar.html
+++ b/templates/zerver/app/left_sidebar.html
@@ -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">