zulip/static/templates/message_view_header.hbs
Aman Agrawal 1484812f4b message_view_header: Hide subscriber count for spectators.
While we figure out a plan in #19842 to display
subscriber count for spectators without doing a heavy query
to the database, we hide this section in navbar.
2021-11-03 16:02:53 -07:00

21 lines
791 B
Handlebars

{{#if stream_settings_link}}
<a class="stream" href="{{stream_settings_link}}">
{{> navbar_icon_and_title }}
</a>
<a class="sub_count no-style tippy-zulip-tooltip hidden-for-spectators" data-tippy-content="{{sub_count_tooltip_text}}" data-tippy-placement="bottom" href="{{stream_settings_link}}">
<i class="fa fa-user-o"></i>{{formatted_sub_count}}
</a>
<span class="narrow_description navbar-click-opens-search rendered_markdown">
{{#if rendered_narrow_description}}
{{rendered_markdown rendered_narrow_description}}
{{else}}
{{t "(no description)"}}
{{/if}}
</span>
{{else}}
<span class="navbar-click-opens-search">
{{> navbar_icon_and_title }}
</span>
{{/if}}
<span class="search_icon search_closed" ><i class="fa fa-search" aria-hidden="true"></i></span>