thelounge/client/views/chat.tpl

25 lines
703 B
Smarty
Raw Normal View History

2014-08-25 23:13:47 +00:00
{{#each channels}}
2016-03-19 18:20:11 +00:00
<div id="chan-{{id}}" data-title="{{name}}" data-id="{{id}}" data-type="{{type}}" data-target="#chan-{{id}}" class="chan {{type}}">
2014-08-25 23:13:47 +00:00
<div class="header">
<button class="lt"></button>
{{#equal type "channel"}}
<button class="rt"></button>
{{/equal}}
2016-03-19 18:20:11 +00:00
<button class="menu"></button>
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>
<div class="messages"></div>
2014-08-25 23:13:47 +00:00
</div>
<aside class="sidebar">
<div class="users"></div>
2014-08-25 23:13:47 +00:00
</aside>
</div>
{{/each}}