Commit 065c1bc8 authored by Lukas Burgey's avatar Lukas Burgey

Remove an old template

parent 2ae18124
{% extends 'skat/base.html' %}
{% load static %}
{% load tags %}
{% block content %}
<div class="row">
{% for stat in stats %}
<div class="col-md-4">
<div class="well">
<h5 class="chart-heading">{{ stat_descriptions|ldescr:stat }}</h5>
<canvas id="chart{{ stat }}"></canvas>
</div>
</div>
{% endfor %}
</div>
{% endblock %}
{% block script %}
<script>
var color_list = [{% for player in player_list %}"{{ player.color }}",{% endfor %}];
{% for stat in stats %}
barChart(
"#chart{{ stat }}",
[{% for player in player_list|dictsort:"stats.points" %}
"{{ player.name }}",{% endfor %}],
[
{
backgroundColor: color_list,
data: [{% for player in player_list|dictsort:"stats.points" %}"{{ player.stats|keyvalue:stat }}",{% endfor %}]
}
]);
{% endfor %}
</script>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment