mirror of
https://github.com/thelounge/thelounge
synced 2024-12-25 20:03:08 +00:00
38 lines
900 B
Smarty
38 lines
900 B
Smarty
{{#each channels}}
|
|
<div id="chan-{{id}}" data-title="{{name}}" data-id="{{id}}" data-type="{{type}}" class="chan {{type}}">
|
|
<div class="header">
|
|
<button class="lt"></button>
|
|
{{#equal type "channel"}}
|
|
<button class="rt"></button>
|
|
{{/equal}}
|
|
<div class="right">
|
|
<button class="button close">
|
|
{{#equal type "lobby"}}
|
|
Disconnect
|
|
{{else}}
|
|
{{#equal type "query"}}
|
|
Close
|
|
{{else}}
|
|
Leave
|
|
{{/equal}}
|
|
{{/equal}}
|
|
</button>
|
|
</div>
|
|
<span class="title">{{name}}</span>
|
|
<span class="topic">{{{parse topic}}}</span>
|
|
</div>
|
|
<div class="chat">
|
|
<div class="show-more {{#equal messages.length 100}}show{{/equal}}">
|
|
<button class="show-more-button" data-id="{{id}}">
|
|
Show more
|
|
</button>
|
|
</div>
|
|
<div class="messages"></div>
|
|
</div>
|
|
<aside class="sidebar">
|
|
<div class="users">
|
|
{{partial "user"}}
|
|
</div>
|
|
</aside>
|
|
</div>
|
|
{{/each}}
|