2018-08-08 18:07:59 +00:00
|
|
|
{% extends 'base.html' %}
|
2019-04-28 13:05:02 +00:00
|
|
|
{# vim: set ts=2 sw=2 et tw=80: #}
|
2018-08-08 18:07:59 +00:00
|
|
|
|
2018-08-10 11:26:45 +00:00
|
|
|
{% block title %}Home{% endblock %}
|
2018-08-08 18:07:59 +00:00
|
|
|
{% block content %}
|
2018-08-10 11:26:45 +00:00
|
|
|
<h1 class="center">Arrow counter</h1>
|
2019-04-28 13:51:25 +00:00
|
|
|
<h5 class="center">A simple online arrow counter</h5>
|
2019-07-26 21:32:50 +00:00
|
|
|
{% if user.is_authenticated %}
|
2019-04-28 13:51:25 +00:00
|
|
|
<p class="center" style="margin-bottom: 3rem">
|
|
|
|
<a class="btn waves-effect waves-light" href="{% url "count_export" %}">
|
|
|
|
Excel Data (CSV) <i class="material-icons right">file_download</i>
|
|
|
|
</a>
|
|
|
|
</p>
|
2019-04-28 13:05:02 +00:00
|
|
|
<div class="card-panel grey lighten-2">
|
|
|
|
<h5 class="center">Arrows shot this year:</h5>
|
|
|
|
<p class="center"><strong style="font-size: 2.7rem">{{ yearArrows }}</strong></p>
|
|
|
|
</div>
|
2019-07-26 21:32:50 +00:00
|
|
|
{% if diffTarget is not False %}
|
|
|
|
<div class="card-panel lighten-2 {% if diffTarget < 0 %}red{% elif diffTarget is 0 %}yellow
|
|
|
|
{% else %}green{% endif %}">
|
|
|
|
<h5 class="center">Difference with target:</h5>
|
|
|
|
<p class="center"><strong style="font-size: 2.7rem">{{ diffTarget }}</strong></p>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2019-04-28 13:05:02 +00:00
|
|
|
<div class="card-panel grey lighten-2">
|
|
|
|
<h5 class="center">Arrows shot this month:</h5>
|
|
|
|
<p class="center"><strong style="font-size: 2.7rem">{{ monthArrows }}</strong></p>
|
|
|
|
</div>
|
|
|
|
<div class="card-panel grey lighten-2">
|
|
|
|
<h5 class="center">Arrows shot this week:</h5>
|
|
|
|
<p class="center"><strong style="font-size: 2.7rem">{{ weekArrows }}</strong></p>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2018-08-08 18:07:59 +00:00
|
|
|
{% endblock %}
|