f0ckv2/views/ranking.html
2022-01-04 21:04:05 +01:00

40 lines
947 B
HTML

@include(snippets/header)
<h1>Ranking lol</h1>
<h3>tags by user</h3>
<table class="table">
<thead>
<tr>
<th>rank</th>
<th>username</th>
<th># tags placed</th>
</tr>
</thead>
<tbody>
@for(let i = 0; i < list.length; i++)
<tr>
<td>{{ i + 1 }}</td>
<td>{!! list[i].user !!}</td>
<td>{{ list[i].count }}</td>
</tr>
@endfor
</tbody>
</table>
<h3>tag stats</h3>
<table class="table">
<tr><td>total</td><td>{{ stats.total }}</td></tr>
<tr><td>tagged</td><td>{{ stats.tagged }}</td></tr>
<tr><td>untagged</td><td>{{ stats.untagged }}</td></tr>
<tr><td>SFW</td><td>{{ stats.sfw }}</td></tr>
<tr><td>NSFW</td><td>{{ stats.nsfw }}</td></tr>
</table>
<h3>top {{ hoster.length }} hoster</h3>
<table class="table">
@each(hoster as host)
<tr>
<td>{{ host.part.length ? host.part : "Telegram" }}</td>
<td>{{ host.c }}</td>
</tr>
@endeach
</table>
@include(snippets/footer)