From f630b17e6f79de7b875e9e358fb4f5fe1a4b3e9d Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 27 Jun 2014 12:41:48 +0200 Subject: [PATCH] fix period id --- teleforma/templates/telemeta/base.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/teleforma/templates/telemeta/base.html b/teleforma/templates/telemeta/base.html index ed295a01..27bebf32 100644 --- a/teleforma/templates/telemeta/base.html +++ b/teleforma/templates/telemeta/base.html @@ -112,14 +112,14 @@ alt="logo" />
  • {% trans "Annals" %}
  • {% if periods|length == 1 %} -
  •  {% trans "Scripts" %}  - {% if user.is_staff or user.correctors.all %}{% untreated_scripts_count user periods.0 %} - {% else %}{% treated_scripts_count user periods.0 %}{% endif %} +
  •  {% trans "Scripts" %}  + {% if user.is_staff or user.correctors.all %}{% untreated_scripts_count user periods.0.id %} + {% else %}{% treated_scripts_count user periods.0.id %}{% endif %}
  • {% else %}
  •  {% trans "Scripts" %}  - {% if user.is_staff or user.correctors.all %}{% untreated_scripts_count user periods.0 %} - {% else %}{% treated_scripts_count user periods.0 %}{% endif %} + {% if user.is_staff or user.correctors.all %}{% untreated_scripts_count user periods.0.id %} + {% else %}{% treated_scripts_count user periods.0.id %}{% endif %}