-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathplayerlist.html
More file actions
37 lines (36 loc) · 1.28 KB
/
playerlist.html
File metadata and controls
37 lines (36 loc) · 1.28 KB
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
<link href="css/bootstrap-sortable.css" rel="stylesheet">
<script src="js/bootstrap-sortable.js"></script>
<div class="row">
<div id="breadcrumb" class="col-xs-12">
<ol class="breadcrumb">
<li><a href="#">Dashboard</a></li>
<li><a href="#">Players</a></li>
<li><a href="#">All Players</a></li>
</ol>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-12">
<table class="table table-bordered sortable">
<thead>
<tr>
<th data-defaultsort='asc'>Name</th>
<th>Planet</th>
<th>Access Level</th>
<th>Last Seen</th>
</tr>
</thead>
<tbody>
{% for player in handler.playerlist %}
<tr>
{% set iconcolour = "#54ae86" if player.logged_in else "#D15E5E" %}
<td data-value="{{ player.name }}"><a href="#" onclick='LoadAjaxContent("ajax/playeredit.html?playername=" + encodeURIComponent("{{ player.name }}"));'>{{ player.name }}</a> <i class="fa fa-user" style="color: {{ iconcolour }}"></i>{% if handler.player_manager.check_bans(player.ip) %} <i class="fa fa-lock" style="color: #d9ce00" title="User is banned"></i>{% end %}</td>
<td>{{ player.planet }}</td>
<td>{{ player.access_level }}</td>
<td>{{ str(player.last_seen).rpartition('.')[0] }}</td>
</tr>
{% end %}
</tbody>
</table>
</div>
</div>