streams/view/tpl/chatrooms.tpl

42 lines
1.5 KiB
Smarty
Raw Normal View History

2016-03-30 12:31:55 +00:00
<div class="generic-content-wrapper">
2017-05-10 15:39:15 +00:00
<div class="section-title-wrapper clearfix">
2016-03-30 12:31:55 +00:00
{{if $is_owner}}
2017-03-10 09:47:30 +00:00
<button type="button" class="btn btn-success btn-sm pull-right acl-form-trigger" onclick="openClose('chatroom-new');" data-form_id="chatroom-new-form"><i class="fa fa-plus-circle"></i>&nbsp;{{$newroom}}</button>
2016-03-30 12:31:55 +00:00
{{/if}}
<h2>{{$header}}</h2>
</div>
{{if $is_owner}}
{{$chatroom_new}}
{{/if}}
{{if $rooms}}
<div class="section-content-wrapper-np">
<table id="chatrooms-index">
<tr>
<th width="97%">{{$name}}</th>
<th width="1%">{{$expire}}</th>
2016-03-30 12:31:55 +00:00
<th width="1%" class="chatrooms-index-tool"></th>
<th width="1%"></th>
</tr>
{{foreach $rooms as $room}}
<tr class="chatroom-index-row">
<td><a href="{{$baseurl}}/chat/{{$nickname}}/{{$room.cr_id}}">{{$room.cr_name}}</a></td>
<td>{{$room.cr_expire}}&nbsp;min</td>
2017-03-24 14:50:54 +00:00
<td class="chatrooms-index-tool{{if $room.allow_cid || $room.allow_gid || $room.deny_cid || $room.deny_gid}} dropdown float-right{{/if}}">
2016-03-30 12:31:55 +00:00
{{if $room.allow_cid || $room.allow_gid || $room.deny_cid || $room.deny_gid}}
2017-04-18 12:29:56 +00:00
<i class="fa fa-lock lockview" data-toggle="dropdown" onclick="lockview('chatroom',{{$room.cr_id}});"></i>
2016-03-30 12:31:55 +00:00
<ul id="panel-{{$room.cr_id}}" class="lockview-panel dropdown-menu"></ul>
{{/if}}
</td>
2017-07-02 09:24:17 +00:00
<td><span class="badge badge-secondary">{{$room.cr_inroom}}</span></td>
2016-03-30 12:31:55 +00:00
</tr>
{{/foreach}}
</table>
2014-02-06 03:16:41 +00:00
2016-03-30 12:31:55 +00:00
</div>
{{else}}
<div class="section-content-wrapper">
{{$norooms}}
</div>
{{/if}}
</div>