Files
HytaleMMORPG/Webapp/views/players/list.ejs
T
gpatruno 48a1b900c7
Build / build (push) Has been cancelled
webapp
2026-06-06 21:59:51 +02:00

50 lines
1.5 KiB
Plaintext

<%- 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') %>