forked from MarseyWorld/MarseyWorld
35 lines
913 B
HTML
35 lines
913 B
HTML
{%- extends 'default.html' -%}
|
|
{% block pagetitle %}Women World Cup 2023 Betting Leaderboard{% endblock %}
|
|
{% block content %}
|
|
<h1>Women World Cup 2023 Betting Leaderboard</h1>
|
|
<div class="overflow-x-auto">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>Name</th>
|
|
<th>Wins</th>
|
|
<th>Bets</th>
|
|
<th>Win rate</th>
|
|
<th>Winnings</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for r in result %}
|
|
<tr>
|
|
{% set user = users.get(r[0]) %}
|
|
<td>{{loop.index}}</td>
|
|
<td data-sort="{{user.username.lower() if user else ''}}">{%- include 'user_in_table.html' -%}</td>
|
|
<td>{{r[1]}}</td>
|
|
<td>{{r[2]}}</td>
|
|
{% set ratio = r[1]/r[2] %}
|
|
{% set percent = (ratio*100)|string %}
|
|
<td data-sort="{{ratio}}">{{percent[:3].replace('0.0', '0').rstrip('.')}}%</td>
|
|
<td>{{r[3]}}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endblock %}
|