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.

navbar: Simplify narrow_description conditional in hbs template.

YashRE42bf91dad438fd
diff --git a/static/templates/tab_bar.hbs b/static/templates/tab_bar.hbs
index b476bc22050..19d940974f8 100644
--- a/static/templates/tab_bar.hbs
+++ b/static/templates/tab_bar.hbs
@@ -6,11 +6,13 @@
<a class="sub_count no-style" data-toggle="tooltip" title="{{sub_count_tooltip_text}}" href="{{stream_settings_link}}">
<i class="fa fa-user-o"></i>{{formatted_sub_count}}
</a>
+ <span class="narrow_description rendered_markdown" data-toggle="tooltip">
{{#if rendered_narrow_description}}
- <span class="narrow_description rendered_markdown" data-toggle="tooltip">{{rendered_markdown rendered_narrow_description}}</span>
+ {{rendered_markdown rendered_narrow_description}}
{{else}}
- <span class="narrow_description rendered_markdown" data-toggle="tooltip">{{t "(no description)"}}</span>
+ {{t "(no description)"}}
{{/if}}
+ </span>
{{else}}
<span>
{{> navbar_icon_and_title }}