From 1f3e186e270fd3acc84033577c4df6cd40d1d581 Mon Sep 17 00:00:00 2001 From: Skia Date: Thu, 21 Jul 2016 20:03:31 +0200 Subject: [PATCH] Update counters and some views --- core/templates/core/user_tools.jinja | 12 ++++---- counter/migrations/0009_auto_20160721_1902.py | 19 +++++++++++++ counter/models.py | 11 ++++---- counter/templates/counter/counter_click.jinja | 4 ++- counter/templates/counter/counter_main.jinja | 2 ++ counter/views.py | 16 +++++++---- locale/fr/LC_MESSAGES/django.mo | Bin 16727 -> 16806 bytes locale/fr/LC_MESSAGES/django.po | 26 ++++++++---------- sith/settings_sample.py | 1 + sith/urls.py | 1 + 10 files changed, 60 insertions(+), 32 deletions(-) create mode 100644 counter/migrations/0009_auto_20160721_1902.py diff --git a/core/templates/core/user_tools.jinja b/core/templates/core/user_tools.jinja index 4d63f1be..7306c11a 100644 --- a/core/templates/core/user_tools.jinja +++ b/core/templates/core/user_tools.jinja @@ -13,12 +13,6 @@ {% if user.is_in_group(settings.SITH_GROUPS['root']['name']) %}
  • {% trans %}Groups{% endtrans %}
  • {% endif %} - {% if user.is_in_group(settings.SITH_GROUPS['counter-admin']['name']) %} -
  • {% trans %}Counters management{% endtrans %}
  • - {% endif %} - {% if user.is_in_group(settings.SITH_GROUPS['accounting-admin']['name']) %} -
  • {% trans %}Accounting{% endtrans %}
  • - {% endif %} {% if user.is_in_group(settings.SITH_MAIN_BOARD_GROUP) or user.is_in_group(settings.SITH_GROUPS['root']['name']) %}
  • {% trans %}Subscriptions{% endtrans %}
  • {% endif %} @@ -27,6 +21,9 @@

    {% trans %}Counters{% endtrans %}