add missing player template
This commit is contained in:
parent
dd13cd4ae9
commit
b68c9ee825
1 changed files with 43 additions and 0 deletions
43
templates/player.html
Normal file
43
templates/player.html
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
{% extends "layout.html" %}
|
||||||
|
{% from "stats_table.html" import stats_list, games_table_js %}
|
||||||
|
|
||||||
|
{% block navbar %}
|
||||||
|
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
||||||
|
<div class="container">
|
||||||
|
<a class="navbar-brand" href="/">The Hanabi Pro Hunting League</a><a class="navbar-brand" href="#"><small class="text-muted">- Player Statistics for {{player_name}}</small></a>
|
||||||
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
<div class="collapse navbar-collapse" id="navbarNav">
|
||||||
|
<ul class="navbar-nav ml-auto">
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" id="Back" href="/">Back</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<div class="tab-content" id="myTabContent">
|
||||||
|
<div class="tab-pane fade show active" id="overview">
|
||||||
|
<div class="container my-5">
|
||||||
|
<h3>
|
||||||
|
Player Statistics for {{player_name}}
|
||||||
|
</h3>
|
||||||
|
{% for rating_type, player_row in player_stat.items() %}
|
||||||
|
<h4>
|
||||||
|
{% if rating_type == 0 %}
|
||||||
|
No Variant
|
||||||
|
{% else %}
|
||||||
|
Clue Starved
|
||||||
|
{% endif %}
|
||||||
|
</h4>
|
||||||
|
{{ stats_list(player_row.stats, True, True) }}
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% endblock %}
|
Loading…
Reference in a new issue