Commit d3148298 authored by Nicolas Joyard's avatar Nicolas Joyard

Use rep.chamber shortcut where applicable

parent 6d34a029
......@@ -21,8 +21,8 @@
%tr
%th Chamber
%td<
%a{'href': "{% url 'representatives:representative-list' group_kind='chamber' group=representative.main_mandate.group.chamber.name %}"}
= representative.main_mandate.group.chamber|chamber_icon
%a{'href': "{% url 'representatives:representative-list' group_kind='chamber' group=representative.chamber.name %}"}
= representative.chamber|chamber_icon
%tr
%th Country
%td<
......
......@@ -16,8 +16,8 @@
%a{'href': "{{ representative.get_absolute_url }}"}
= representative.full_name
%li.chamber
%a{'href': "{% url 'representatives:representative-list' group_kind='chamber' group=representative.main_mandate.group.chamber.name %}"}
= representative.main_mandate.group.chamber|chamber_icon
%a{'href': "{% url 'representatives:representative-list' group_kind='chamber' group=representative.chamber.name %}"}
= representative.chamber|chamber_icon
%li.country
%a{'href': "{{ representative.country.get_absolute_url }}"}
= representative.country|country_flag
......
......@@ -47,8 +47,8 @@
= representative.full_name
%td
%a{'href': "{% url 'representatives:representative-list' group_kind='chamber' group=representative.main_mandate.group.chamber.name %}"}
= representative.main_mandate.group.chamber
%a{'href': "{% url 'representatives:representative-list' group_kind='chamber' group=representative.chamber.name %}"}
= representative.chamber
%td
%a{'href': "{{ representative.country.get_absolute_url }}"}
......
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