arrowcounter/counter/templates/stats.html

23 lines
716 B
HTML
Raw Normal View History

2019-07-27 11:58:09 +00:00
{# vim: set ts=2 sw=2 et tw=80: #}
2018-09-11 20:50:54 +00:00
{% extends 'base.html' %}
2019-07-27 11:58:09 +00:00
{% load i18n %}
2018-09-11 20:50:54 +00:00
{% load static %}
2019-07-27 11:58:09 +00:00
{% block title %}{% trans "Weekly stats" %}{% endblock %}
2018-09-11 20:50:54 +00:00
{% block scripts %}
<script id="data" type="application/json">
{% autoescape off %}{{ weeklyArrows }}{% endautoescape %}
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js"></script>
<script src="{% static 'js/dateformat.js' %}"></script>
<script src="{% static 'js/weeklystats.js' %}"></script>
2018-09-11 20:50:54 +00:00
{% endblock %}
{% block content %}
2019-07-27 11:58:09 +00:00
<h1 class="center">{% trans "Weekly stats" %}</h1>
<canvas id="chart"></canvas>
2018-09-11 20:50:54 +00:00
{% endblock %}