@@ -0,0 +1,49 @@
|
||||
<%- include('../partials/page-start') %>
|
||||
|
||||
<%- include('../partials/page-header', { title, subtitle: players.length + ' joueur(s) enregistré(s)' }) %>
|
||||
|
||||
<section class="panel">
|
||||
<% if (players.length === 0) { %>
|
||||
<p class="empty">Aucun joueur trouvé dans la base de données.</p>
|
||||
<% } else { %>
|
||||
<table class="table table-clickable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Joueur</th>
|
||||
<th>Niveau</th>
|
||||
<th>XP</th>
|
||||
<th>Classe</th>
|
||||
<th>Race</th>
|
||||
<th>Money</th>
|
||||
<th>Statut</th>
|
||||
<th>Temps de jeu</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% players.forEach(function(p) { %>
|
||||
<tr class="row-link" onclick="window.location='/players/<%= p.uuid %>'">
|
||||
<td>
|
||||
<span class="player-name"><%= p.display_name %></span>
|
||||
<small class="muted"><%= p.uuid %></small>
|
||||
</td>
|
||||
<td><%= p.level %></td>
|
||||
<td><%= fmt.formatNumber(p.experience) %></td>
|
||||
<td><%= p.classLabel %></td>
|
||||
<td><%= p.raceLabel %></td>
|
||||
<td><%= fmt.formatMoney(p.money) %></td>
|
||||
<td>
|
||||
<% if (p.isOnline) { %>
|
||||
<span class="tag tag-online">En ligne</span>
|
||||
<% } else { %>
|
||||
<span class="tag tag-offline">Hors ligne</span>
|
||||
<% } %>
|
||||
</td>
|
||||
<td><%= fmt.formatDuration(p.total_time_play) %></td>
|
||||
</tr>
|
||||
<% }); %>
|
||||
</tbody>
|
||||
</table>
|
||||
<% } %>
|
||||
</section>
|
||||
|
||||
<%- include('../partials/page-end') %>
|
||||
Reference in New Issue
Block a user