{# Copyright 2017 Hermann Krumrey This file is part of bundesliga-tippspiel. bundesliga-tippspiel is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. bundesliga-tippspiel is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with bundesliga-tippspiel. If not, see . #} {% extends "core/base_layout.html" %} {% set requires_charts=True %} {% block body %}

{{ user.username }}

{% if user.profile is not none %}

Über mich:

{% if user.profile.description is not none %}

{{ user.profile.description }}

{% endif %}

Lieblingsteam:

{% if user.profile.favourite_team is not none %} {% endif %}

{% endif %}

Positionsentwicklung

{% set chart_history=user_stats.history_to_chart_data() %} {% include "ranking/leaderboard_chart.html" %}

Übersicht

Position {{ user_stats.get_user_position() }}
Position (Hinrunde) {{ user_stats.get_user_first_half_position() }}
Position (Rückrunde) {{ user_stats.get_user_second_half_position() }}
Beste Position {{ user_stats.get_user_best_position() }}
Schlechteste Position {{ user_stats.get_user_worst_position() }}
Punkte {{ user_stats.get_user_points() }}
Anzahl Tipps {{ user_stats.get_user_bet_count() }}
Punkteschnitt {{ user_stats.get_user_betting_average()|round(2) }}
Teilnahme {{ user_stats.get_user_participation()|round(2) }}%
Korrekte Tipps {{ user_stats.get_user_correct_bets() }}
Komplett falsche Tipps {{ user_stats.get_user_wrong_bets() }}
Bestes Team {% set best_team, best_team_avg = user_stats.get_user_best_team() %} {{ best_team.short_name }} ({{ best_team_avg|round(2) }})
Schlechtestes Team {% set worst_team, worst_team_avg = user_stats.get_user_worst_team() %} {{ worst_team.short_name }} ({{ worst_team_avg|round(2) }})
{% set distribution = user_stats.get_user_points_distribution() %} {% include "stats/points_distribution_pie_chart.html" %}

Punkte pro Team

{% set team_points = user_stats.get_user_average_points_per_team() %} {% include "stats/team_points_table.html" %}
{% endblock %}