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
d3148298
Commit
d3148298
authored
Apr 18, 2016
by
Nicolas Joyard
Browse files
Use rep.chamber shortcut where applicable
parent
6d34a029
Changes
3
Hide whitespace changes
Inline
Side-by-side
templates/representatives/_representative_block.haml
View file @
d3148298
...
...
@@ -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
<
...
...
templates/representatives/representative_grid.haml
View file @
d3148298
...
...
@@ -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
...
...
templates/representatives/representative_list.haml
View file @
d3148298
...
...
@@ -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 }}"
}
...
...
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