thelounge/client/views/chat.tpl

39 lines
882 B
Smarty
Raw Normal View History

2014-08-25 23:13:47 +00:00
{{#each channels}}
2014-11-07 19:52:38 +00:00
<div id="chan-{{id}}" data-title="{{name}}" data-id="{{id}}" data-type="{{type}}" class="chan {{type}}">
2014-08-25 23:13:47 +00:00
<div class="header">
<button class="lt"></button>
<button class="rt"></button>
2014-09-21 15:59:50 +00:00
<div class="right">
<button class="button close">
{{#equal type "lobby"}}
Disconnect
{{else}}
{{#equal type "query"}}
Close
{{else}}
Leave
{{/equal}}
2014-09-21 15:59:50 +00:00
{{/equal}}
</button>
</div>
2014-08-25 23:13:47 +00:00
<span class="title">{{name}}</span>
2014-10-10 20:05:25 +00:00
<span class="topic">{{{parse topic}}}</span>
2014-08-25 23:13:47 +00:00
</div>
<div class="chat">
2014-09-28 21:51:24 +00:00
<div class="show-more {{#equal messages.length 100}}show{{/equal}}">
<button class="show-more-button" data-id="{{id}}">
Show more
</button>
</div>
2014-08-25 23:13:47 +00:00
<div class="messages">
{{partial "msg"}}
</div>
</div>
<aside class="sidebar">
<div class="users">
{{partial "user"}}
</div>
</aside>
</div>
{{/each}}