Commit da580a2a authored by Nicolas Joyard's avatar Nicolas Joyard

Add chamber to group lists

parent 9a4fa745
......@@ -10,6 +10,10 @@ admin.autodiscover()
urlpatterns = [
# Project-specific overrides
url(
r'^legislature/representative/(?P<group_kind>\w+)/(?P<chamber>.+)/(?P<group>.+)/$',
views.RepresentativeList.as_view(),
),
url(
r'^legislature/representative/(?P<group_kind>\w+)/(?P<group>.+)/$',
views.RepresentativeList.as_view(),
......
......@@ -4,8 +4,12 @@
%table.table
- for group in object_list
%tr
- if group.kind != 'country' and group.kind != 'chamber'
%td
%a{'href': "{% url 'representatives:representative-list' group_kind='chamber' group=group.chamber.name %}"}= group.chamber.name
%td
%a{'href': '{{ group.get_absolute_url }}'}w
%a{'href': '{{ group.get_absolute_url }}'}
- if group.abbreviation
={group.abbreviation}
%td
......
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