-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stats became elo and rankings is a new page. issue #18
- Loading branch information
pizzato
committed
Dec 17, 2015
1 parent
96380b7
commit 9e4944b
Showing
3 changed files
with
131 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
{% extends "base.html" %} | ||
{% import "bootstrap/utils.html" as utils %} | ||
|
||
|
||
{% block head %} | ||
{{super()}} | ||
{%- endblock %} | ||
|
||
{% block content %} | ||
|
||
|
||
<div class="container"> | ||
|
||
<div class="col-xs-2"> | ||
<div class="h3">Player</div> | ||
<div class="row"> | ||
{% for pos, player in players_ranking %} | ||
<div class="caption text-center">{{ pos+1 }}: {{ player.player_stats.elo_rating_str() }}</div> | ||
<div class="thumbnail col-md-12 col-xs-12"> | ||
<a href="{{ url_for('players_name_get', name=player.name) }}"> | ||
<img src="{{ player.photo }}" class="player" alt="{{ player.name|safe }}" /> | ||
<div class="caption post-content h3 text-center"> | ||
{{ player.name }} | ||
</div> | ||
</a> | ||
</div> | ||
{% else %} | ||
<em>Unbelievable. No players, please add</em> | ||
{% endfor %} | ||
|
||
</div> | ||
</div> | ||
|
||
<div class="col-xs-offset-1 col-xs-2"> | ||
<div class="h3">Attack</div> | ||
<div class="row"> | ||
{% for pos, player in attack_ranking %} | ||
<div class="caption text-center">{{ pos+1 }}: {{ player.attack_stats.elo_rating_str() }}</div> | ||
<div class="thumbnail col-md-12 col-xs-12"> | ||
<a href="{{ url_for('players_name_get', name=player.name) }}"> | ||
<img src="{{ player.photo }}" class="player" alt="{{ player.name|safe }}" /> | ||
<div class="caption post-content h3 text-center"> | ||
{{ player.name }} | ||
</div> | ||
</a> | ||
</div> | ||
{% else %} | ||
<em>Unbelievable. No players, please add</em> | ||
{% endfor %} | ||
|
||
</div> | ||
</div> | ||
|
||
|
||
<div class="col-xs-offset-1 col-xs-2"> | ||
<div class="h3">Defense</div> | ||
<div class="row"> | ||
{% for pos, player in defense_ranking %} | ||
<div class="caption text-center">{{ pos+1 }}: {{ player.defense_stats.elo_rating_str() }}</div> | ||
<div class="thumbnail col-md-12 col-xs-12"> | ||
<a href="{{ url_for('players_name_get', name=player.name) }}"> | ||
<img src="{{ player.photo }}" class="player" alt="{{ player.name|safe }}" /> | ||
<div class="caption post-content h3 text-center"> | ||
{{ player.name }} | ||
</div> | ||
</a> | ||
</div> | ||
{% else %} | ||
<em>Unbelievable. No players, please add</em> | ||
{% endfor %} | ||
|
||
</div> | ||
</div> | ||
|
||
|
||
<div class="col-xs-offset-1 col-xs-2"> | ||
<div class="h3">Team</div> | ||
<div class="row"> | ||
{% for pos, team in team_ranking %} | ||
<div class="caption text-center">{{ pos+1 }}: {{ team.team_stats.elo_rating_str() }}</div> | ||
<div class="thumbnail col-md-6 col-xs-6"> | ||
<a href="{{ url_for('players_name_get', name=team.defense_player.name) }}"> | ||
<img src="{{ team.defense_player.photo }}" class="player" alt="{{ team.defense_player.name|safe }}" /> | ||
<div class="caption post-content h4 text-center"> | ||
{{ team.defense_player.name }} | ||
</div> | ||
</a> | ||
</div> | ||
<div class="thumbnail col-md-6 col-xs-6"> | ||
<a href="{{ url_for('players_name_get', name=team.attack_player.name) }}"> | ||
<img src="{{ team.attack_player.photo }}" class="player" alt="{{ team.attack_player.name|safe }}" /> | ||
<div class="caption post-content h4 text-center"> | ||
{{ team.attack_player.name }} | ||
</div> | ||
</a> | ||
</div> | ||
|
||
{% else %} | ||
<em>Unbelievable. No teams, please add</em> | ||
{% endfor %} | ||
|
||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
|
||
|
||
|
||
|
||
{% endblock %} |