2014-08-25 23:13:47 +00:00
|
|
|
{{#each channels}}
|
2017-12-28 12:15:28 +00: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-13 04:52:26 +00:00
|
|
|
{{#equal type "lobby"}}
|
2017-12-21 21:23:22 +00:00
|
|
|
<span class="add-channel-tooltip tooltipped tooltipped-w tooltipped-no-touch" aria-label="Join a channel…" data-alt-label="Cancel">
|
2017-12-21 18:11:49 +00:00
|
|
|
<button class="add-channel" aria-label="Join a channel…" data-id="{{id}}"></button>
|
2017-12-13 04:52:26 +00:00
|
|
|
</span>
|
|
|
|
{{/equal}}
|
2016-09-25 06:41:10 +00:00
|
|
|
<span class="badge{{#if highlight}} highlight{{/if}}">{{#if unread}}{{roundBadgeNumber unread}}{{/if}}</span>
|
2017-12-19 02:05:22 +00:00
|
|
|
{{#notEqual type "lobby"}}
|
2018-02-25 01:29:05 +00:00
|
|
|
<span class="close-tooltip tooltipped tooltipped-w" aria-label="Leave">
|
|
|
|
<button class="close" aria-label="Leave"></button>
|
2017-12-19 02:05:22 +00:00
|
|
|
</span>
|
|
|
|
{{/notEqual}}
|
2016-02-21 01:28:45 +00:00
|
|
|
<span class="name" title="{{name}}">{{name}}</span>
|
2014-09-22 18:54:38 +00:00
|
|
|
</div>
|
2017-12-13 04:52:26 +00:00
|
|
|
{{#equal type "lobby"}}
|
|
|
|
{{> join_channel}}
|
|
|
|
{{/equal}}
|
2014-08-25 23:13:47 +00:00
|
|
|
{{/each}}
|