2023-08-03 06:27:25 +00:00
|
|
|
{%- extends 'default.html' -%}
|
|
|
|
{% block pagetitle %}Women World Cup 2023 Betting Leaderboard{% endblock %}
|
|
|
|
{% block content %}
|
2023-10-29 12:51:00 +00:00
|
|
|
<h1>Women World Cup 2023 Betting Leaderboard</h1>
|
|
|
|
<div class="overflow-x-auto">
|
2024-02-12 14:18:13 +00:00
|
|
|
<table>
|
|
|
|
<thead>
|
2023-10-29 12:51:00 +00:00
|
|
|
<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-key="{{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-key="{{ratio}}">{{percent[:3].replace('0.0', '0').rstrip('.')}}%</td>
|
|
|
|
<td>{{r[3]}}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2023-08-03 06:27:25 +00:00
|
|
|
{% endblock %}
|