This commit is contained in:
@@ -21,9 +21,10 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<% leaderboard.forEach((entry, i) => { %>
|
||||
<% const rank = (typeof offset !== 'undefined' ? offset : 0) + i + 1; %>
|
||||
<tr>
|
||||
<td class="rank-cell rank-<%= i + 1 %>">
|
||||
<% if (i === 0) { %>🥇<% } else if (i === 1) { %>🥈<% } else if (i === 2) { %>🥉<% } else { %><%= i + 1 %><% } %>
|
||||
<td class="rank-cell rank-<%= rank %>">
|
||||
<% if (rank === 1) { %>🥇<% } else if (rank === 2) { %>🥈<% } else if (rank === 3) { %>🥉<% } else { %><%= rank %><% } %>
|
||||
</td>
|
||||
<td><strong><a href="/player/<%= entry.username %>"><%= entry.username %></a></strong></td>
|
||||
<td><span class="points-badge"><%= entry.total_points %></span></td>
|
||||
@@ -34,6 +35,7 @@
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<%- include('../partials/pagination') %>
|
||||
<% } %>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user