zulip/static/templates/tab_bar.handlebars

25 lines
650 B
Handlebars

<ul id="tab_list">
{{#each tabs}}
<li class="{{active}} {{cls}}" {{#if data}}data-name="{{data}}"{{/if}}>
{{#if icon}}
<i class="icon-vector-narrow icon-vector-small"></i>
{{/if}}
{{! Most tabs are links, but some are not since we don't have a narrow for them (e.g. Search) }}
{{#if hash}}
{{#if home}}
<a href="{{hash}}"><i class="icon-vector-home"></i></a>
{{else}}
<a href="{{hash}}">{{title}}</a>
{{/if}}
{{else}}
{{#if home}}
<i class="icon-vector-home"></i>
{{/if}}
{{#unless home}}
{{title}}
{{/unless}}
{{/if}}
</li>
{{/each}}
</ul>