From ea8f7449d42ed8762b89cab6eaafbd2aac634e0f Mon Sep 17 00:00:00 2001 From: luxcem Date: Mon, 16 Mar 2015 17:22:04 +0100 Subject: [PATCH] updates representatives view --- .../templates/memopol_representatives/view.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/memopol_representatives/templates/memopol_representatives/view.html b/memopol_representatives/templates/memopol_representatives/view.html index b5037fb..a3e89d0 100644 --- a/memopol_representatives/templates/memopol_representatives/view.html +++ b/memopol_representatives/templates/memopol_representatives/view.html @@ -11,7 +11,7 @@

{{ representative.full_name }}

{% for mandate in representative.mandate_set.all %} -{% if mandate.group.kind == "group" %} +{% if mandate.group.kind == "group" and mandate.active %}

{{ mandate.role }} of {{ mandate.group.name }}

{% endif %} {% endfor %} @@ -21,8 +21,11 @@

Committees

{% for mandate in representative.mandate_set.all %} - {% if mandate.group.kind == "committee" %} -

{{ mandate.role }} of {{ mandate.group.name }} ({{ mandate.group.abbreviation }}) + {% if mandate.group.kind == "committee" and mandate.active %} +

+ {{ mandate.role }} of {{ mandate.group.name }} + ({{ mandate.group.abbreviation }}) +

{% endif %} {% endfor %} -- GitLab