Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Political Memory
memopol
Commits
ea8f7449
Commit
ea8f7449
authored
Mar 16, 2015
by
luxcem
Browse files
updates representatives view
parent
047b3f3d
Changes
1
Show whitespace changes
Inline
Side-by-side
memopol_representatives/templates/memopol_representatives/view.html
View file @
ea8f7449
...
...
@@ -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 %}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment