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"
|
2018-10-05 09:05:09 +00:00
|
|
|
aria-label="{{name}}{{#if unread}} ({{unread}} unread{{#if highlight}}, {{highlight}} mentions{{/if}}){{/if}}"
|
2017-12-28 12:15:28 +00:00
|
|
|
aria-controls="chan-{{id}}"
|
|
|
|
aria-selected="false"
|
|
|
|
>
|
2017-12-13 04:52:26 +00:00
|
|
|
{{#equal type "lobby"}}
|
2018-04-29 12:20:06 +00:00
|
|
|
<button class="collapse-network" aria-label="Collapse" aria-controls="network-{{../uuid}}" aria-expanded="true">
|
2018-03-04 19:02:27 +00:00
|
|
|
<span class="collapse-network-icon"></span>
|
|
|
|
</button>
|
|
|
|
<div class="lobby-wrap">
|
|
|
|
<span class="name" title="{{name}}">{{name}}</span>
|
|
|
|
<span class="not-secure-tooltip tooltipped tooltipped-w" aria-label="Insecure connection">
|
|
|
|
<span class="not-secure-icon"></span>
|
|
|
|
</span>
|
|
|
|
<span class="not-connected-tooltip tooltipped tooltipped-w" aria-label="Disconnected">
|
|
|
|
<span class="not-connected-icon"></span>
|
|
|
|
</span>
|
2018-06-11 11:29:57 +00:00
|
|
|
<span class="badge{{#if highlight}} highlight{{/if}}" data-highlight="{{highlight}}">{{#if unread}}{{roundBadgeNumber unread}}{{/if}}</span>
|
2018-03-04 19:02:27 +00:00
|
|
|
</div>
|
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">
|
2018-05-02 13:57:19 +00:00
|
|
|
<button class="add-channel" aria-label="Join a channel…" aria-controls="join-channel-{{id}}"></button>
|
2017-12-13 04:52:26 +00:00
|
|
|
</span>
|
2018-06-26 08:00:11 +00:00
|
|
|
{{else}}
|
2018-03-04 19:02:27 +00:00
|
|
|
<span class="name" title="{{name}}">{{name}}</span>
|
2018-06-11 11:29:57 +00:00
|
|
|
<span class="badge{{#if highlight}} highlight{{/if}}" data-highlight="{{highlight}}">{{#if unread}}{{roundBadgeNumber unread}}{{/if}}</span>
|
2018-06-26 08:00:11 +00:00
|
|
|
{{#equal type "channel"}}
|
|
|
|
<span class="close-tooltip tooltipped tooltipped-w" aria-label="Leave">
|
|
|
|
<button class="close" aria-label="Leave"></button>
|
|
|
|
</span>
|
|
|
|
{{else}}
|
|
|
|
<span class="close-tooltip tooltipped tooltipped-w" aria-label="Close">
|
|
|
|
<button class="close" aria-label="Close"></button>
|
|
|
|
</span>
|
|
|
|
{{/equal}}
|
|
|
|
{{/equal}}
|
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}}
|