Use notEqual helper for close button

This commit is contained in:
Pavel Djundik 2017-12-22 12:30:23 +02:00 committed by GitHub
parent 06becc798f
commit aad9033d06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
{{#each channels}} {{#each channels}}
<div data-id="{{id}}" data-target="#chan-{{id}}" data-title="{{name}}" class="chan {{type}} chan-{{slugify name}}"> <div data-id="{{id}}" data-target="#chan-{{id}}" data-title="{{name}}" class="chan {{type}} chan-{{slugify name}}">
<span class="badge{{#if highlight}} highlight{{/if}}">{{#if unread}}{{roundBadgeNumber unread}}{{/if}}</span> <span class="badge{{#if highlight}} highlight{{/if}}">{{#if unread}}{{roundBadgeNumber unread}}{{/if}}</span>
{{#equal type "lobby"}}{{else}}<button class="close" aria-label="Close"></button>{{/equal}} {{#notEqual type "lobby"}}<button class="close" aria-label="Close"></button>{{/notEqual}}
<span class="name" title="{{name}}">{{name}}</span> <span class="name" title="{{name}}">{{name}}</span>
</div> </div>
{{/each}} {{/each}}