From 81d3376d7cff359ddef1c0859db4786e838694d6 Mon Sep 17 00:00:00 2001 From: "Claudio Maggioni (maggicl)" Date: Fri, 9 Aug 2019 14:27:13 +0200 Subject: [PATCH] Added projected year count and weekly average in home screen --- counter/templates/index.html | 4 ++++ counter/views.py | 13 ++++++++++--- locale/it/LC_MESSAGES/django.po | 28 ++++++++++++++++++---------- 3 files changed, 32 insertions(+), 13 deletions(-) diff --git a/counter/templates/index.html b/counter/templates/index.html index 1bc7906..814bf7c 100644 --- a/counter/templates/index.html +++ b/counter/templates/index.html @@ -16,6 +16,10 @@
{% trans "Arrows shot this year:" %}

{{ yearArrows }}

+
{% trans "Projected number of arrows at the end of the year:" %}
+

{{ projectedYearArrows }}

+
{% trans "Weekly average:" %}
+

{{ weeklyAverage }}

{% if diffTarget is not False %}
\n" "Language-Team: Claudio Maggioni \n" @@ -130,15 +130,23 @@ msgstr "Home" msgid "Arrows shot this year:" msgstr "Frecce tirate quest'anno:" -#: counter/templates/index.html:23 +#: counter/templates/index.html:19 +msgid "Projected number of arrows at the end of the year:" +msgstr "Totale frecce proiettato alla fine dell'anno:" + +#: counter/templates/index.html:21 +msgid "Weekly average:" +msgstr "Media settimanale:" + +#: counter/templates/index.html:27 msgid "Difference with target:" msgstr "Differenza rispetto all'obiettivo:" -#: counter/templates/index.html:28 +#: counter/templates/index.html:32 msgid "Arrows shot this month:" msgstr "Frecce tirate questo mese:" -#: counter/templates/index.html:32 +#: counter/templates/index.html:36 msgid "Arrows shot this week:" msgstr "Frecce tirate questa settimana:" @@ -185,27 +193,27 @@ msgstr "Frecce tirate quest'anno" msgid "Remove" msgstr "Rimuovi" -#: counter/views.py:127 +#: counter/views.py:134 msgid "page is negative or 0" msgstr "pagina negativa o uguale a 0" -#: counter/views.py:221 +#: counter/views.py:228 msgid "ArrowCount instance not found or from different user" msgstr "istanza ArrowCount non trovata o appartenente ad altro utente" -#: counter/views.py:233 +#: counter/views.py:240 msgid "mode not valid" msgstr "campo 'mode' non valido" -#: counter/views.py:242 +#: counter/views.py:249 msgid "value field is not a number" msgstr "il campo 'value' non è un numero" -#: counter/views.py:258 +#: counter/views.py:265 msgid "count is negative or 0" msgstr "count è negativo o uguale a 0" -#: counter/views.py:266 +#: counter/views.py:273 msgid "count too big" msgstr "conteggio troppo alto"