2014-08-25 16:13:47 -07:00
|
|
|
{{#each channels}}
|
2017-12-28 14:15:28 +02:00
|
|
|
<div
|
|
|
|
class="chan {{type}} chan-{{slugify name}}"
|
|
|
|
data-id="{{id}}"
|
|
|
|
data-target="#chan-{{id}}"
|
|
|
|
role="tab"
|
|
|
|
aria-label="{{name}}"
|
|
|
|
aria-controls="chan-{{id}}"
|
|
|
|
aria-selected="false"
|
|
|
|
>
|
2017-12-12 20:52:26 -08:00
|
|
|
{{#equal type "lobby"}}
|
2017-12-21 16:23:22 -05:00
|
|
|
<span class="add-channel-tooltip tooltipped tooltipped-w tooltipped-no-touch" aria-label="Join a channel…" data-alt-label="Cancel">
|
2017-12-21 13:11:49 -05:00
|
|
|
<button class="add-channel" aria-label="Join a channel…" data-id="{{id}}"></button>
|
2017-12-12 20:52:26 -08:00
|
|
|
</span>
|
|
|
|
{{/equal}}
|
2016-09-25 09:41:10 +03:00
|
|
|
<span class="badge{{#if highlight}} highlight{{/if}}">{{#if unread}}{{roundBadgeNumber unread}}{{/if}}</span>
|
2017-12-18 18:05:22 -08:00
|
|
|
{{#notEqual type "lobby"}}
|
2018-02-25 02:29:05 +01:00
|
|
|
<span class="close-tooltip tooltipped tooltipped-w" aria-label="Leave">
|
|
|
|
<button class="close" aria-label="Leave"></button>
|
2017-12-18 18:05:22 -08:00
|
|
|
</span>
|
|
|
|
{{/notEqual}}
|
2016-02-20 20:28:45 -05:00
|
|
|
<span class="name" title="{{name}}">{{name}}</span>
|
2014-09-22 11:54:38 -07:00
|
|
|
</div>
|
2017-12-12 20:52:26 -08:00
|
|
|
{{#equal type "lobby"}}
|
|
|
|
{{> join_channel}}
|
|
|
|
{{/equal}}
|
2014-08-25 16:13:47 -07:00
|
|
|
{{/each}}
|