From ea8f7449d42ed8762b89cab6eaafbd2aac634e0f Mon Sep 17 00:00:00 2001 From: luxcem <af@laquadrature.net> 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 b5037fb8..a3e89d0f 100644 --- a/memopol_representatives/templates/memopol_representatives/view.html +++ b/memopol_representatives/templates/memopol_representatives/view.html @@ -11,7 +11,7 @@ <h1>{{ representative.full_name }}</h1> {% for mandate in representative.mandate_set.all %} -{% if mandate.group.kind == "group" %} +{% if mandate.group.kind == "group" and mandate.active %} <h3>{{ mandate.role }} of {{ mandate.group.name }}</h3> {% endif %} {% endfor %} @@ -21,8 +21,11 @@ <h2 style="clear: both">Committees</h2> {% for mandate in representative.mandate_set.all %} - {% if mandate.group.kind == "committee" %} - <p>{{ mandate.role }} of {{ mandate.group.name }} ({{ mandate.group.abbreviation }}) + {% if mandate.group.kind == "committee" and mandate.active %} + <p> + {{ mandate.role }} of {{ mandate.group.name }} + (<a href="{% url 'representatives:committee' mandate.group.abbreviation %}">{{ mandate.group.abbreviation }}</a>) + </p> {% endif %} {% endfor %} -- GitLab