-
Notifications
You must be signed in to change notification settings - Fork 0
/
page_dashboard.tpl
executable file
·98 lines (94 loc) · 3.34 KB
/
page_dashboard.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{if !$dashboard_text}
{else}
<div class="panel panel-info">
<div class="panel-heading"></div>
<div class="panel-body">
{$dashboard_text}
</div>
</div>
{/if}
<div id="front-servers">
{include file='page_servers.tpl'}
</div>
<div class="panel panel-primary">
<div class="panel-heading">
<span>Latest Added Bans</span>
<span class="pull-right">Total bans: {$total_bans}</span>
</div>
<table class="table table-striped panel-body">
<thead>
<th>MOD</th>
<th>Date/Time</th>
<th>Name</th>
<th>Length</th>
</thead>
<tbody>
{foreach from=$players_banned item=player}
<tr onclick="{$player.link_url}">
<td align="center"><img src="images/games/{$player.icon}" width="16" alt="MOD" title="MOD" /></td>
<td align="center">{$player.created}</td>
<td>
{if empty($player.short_name)}
<i><font color="#677882">no nickname present</font></i>
{else}
{$player.short_name|escape:'html'}
{/if}
</td>
<td>{$player.length}{if $player.unbanned} ({$player.ub_reason}){/if}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
<div class="panel panel-primary col-sm-12 col-md-6">
<div class="panel-heading">
<span>Latest Comm Blocks</span>
<span class="pull-right">Total blocks: {$total_comms}</span>
</div>
<table class="table table-striped table-hover panel-body">
<thead>
<th>Type</th>
<th>Date/Time</th>
<th>Name</th>
<th>Length</th>
</thead>
<tbody>
{foreach from=$players_blocked item=player}
<tr {if $dashboard_lognopopup}onclick="{$player.link_url}"{else}onclick="{$player.popup}"{/if}>
<td align="center"><img src="{$player.type}" width="16" alt="MOD" title="MOD" /></td>
<td>{$player.created}</td>
<td>
{if empty($player.short_name)}
<i><font color="#677882">no nickname present</font></i>
{else}
{$player.short_name|escape:'html'}
{/if}
</td>
<td>{$player.length}{if $player.unbanned} ({$player.ub_reason}){/if}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
<div class="panel panel-primary col-sm-12 col-md-6">
<div class="panel-heading">
<span>Latest Players Blocked</span>
<span class="pull-right">Total Stopped: {$total_blocked}</span>
</div>
<table class="table table-striped table-hover panel-body">
<thead>
<th> </th>
<th>Date/Time</th>
<th>Name</th>
</thead>
<tbody>
{foreach from=$players_blocked item=player}
<tr {if $dashboard_lognopopup}onclick="{$player.link_url}"{else}onclick="{$player.popup}"{/if}>
<td></td>
<td>{$player.date}</td>
<td>{$player.short_name|escape:'html'}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>