Commit ea8f7449 authored by luxcem's avatar luxcem

updates representatives view

parent 047b3f3d
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<h1>{{ representative.full_name }}</h1> <h1>{{ representative.full_name }}</h1>
{% for mandate in representative.mandate_set.all %} {% 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> <h3>{{ mandate.role }} of {{ mandate.group.name }}</h3>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
...@@ -21,8 +21,11 @@ ...@@ -21,8 +21,11 @@
<h2 style="clear: both">Committees</h2> <h2 style="clear: both">Committees</h2>
{% for mandate in representative.mandate_set.all %} {% for mandate in representative.mandate_set.all %}
{% if mandate.group.kind == "committee" %} {% if mandate.group.kind == "committee" and mandate.active %}
<p>{{ mandate.role }} of {{ mandate.group.name }} ({{ mandate.group.abbreviation }}) <p>
{{ mandate.role }} of {{ mandate.group.name }}
(<a href="{% url 'representatives:committee' mandate.group.abbreviation %}">{{ mandate.group.abbreviation }}</a>)
</p>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment