arrowcounter/counter/templates/stats.html

19 lines
637 B
HTML

{% extends 'base.html' %}
{% load static %}
{% block title %}Weekly stats{% endblock %}
{% 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>
{% endblock %}
{% block content %}
<h1 class="center">Weekly stats</h1>
<canvas id="chart"></canvas>
{% endblock %}