arrowcounter/counter/templates/index.html

37 lines
1.4 KiB
HTML
Raw Normal View History

2019-04-28 13:05:02 +00:00
{# vim: set ts=2 sw=2 et tw=80: #}
2019-07-27 11:58:09 +00:00
{% extends 'base.html' %}
{% load i18n %}
2019-07-27 11:58:09 +00:00
{% block title %}{% trans "Home" %}{% endblock %}
{% block content %}
2019-07-27 11:58:09 +00:00
<h1 class="center">{% trans "Arrow counter" %}</h1>
<h5 class="center">{% trans "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">
2019-07-27 11:58:09 +00:00
<a class="btn waves-effect waves-light" href="{% url "count_export" %}">
{% trans "Excel Data (CSV)" %} <i class="material-icons right">file_download</i>
</a>
2019-04-28 13:51:25 +00:00
</p>
2019-04-28 13:05:02 +00:00
<div class="card-panel grey lighten-2">
2019-07-27 11:58:09 +00:00
<h5 class="center">{% trans "Arrows shot this year:" %}</h5>
<p class="center"><strong style="font-size: 2.7rem">{{ yearArrows }}</strong></p>
2019-04-28 13:05:02 +00:00
</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 %}">
2019-07-27 11:58:09 +00:00
<h5 class="center">{% trans "Difference with target:" %}</h5>
<p class="center"><strong style="font-size: 2.7rem">{{ diffTarget }}</strong></p>
2019-07-26 21:32:50 +00:00
</div>
{% endif %}
2019-04-28 13:05:02 +00:00
<div class="card-panel grey lighten-2">
2019-07-27 11:58:09 +00:00
<h5 class="center">{% trans "Arrows shot this month:" %}</h5>
<p class="center"><strong style="font-size: 2.7rem">{{ monthArrows }}</strong></p>
2019-04-28 13:05:02 +00:00
</div>
<div class="card-panel grey lighten-2">
2019-07-27 11:58:09 +00:00
<h5 class="center">{% trans "Arrows shot this week:" %}</h5>
<p class="center"><strong style="font-size: 2.7rem">{{ weekArrows }}</strong></p>
2019-04-28 13:05:02 +00:00
</div>
{% endif %}
{% endblock %}