group_list.haml 529 Bytes
Newer Older
Jamesie Pic's avatar
Jamesie Pic committed
1
2
3
4
5
6
- extends 'base.html'

- block content
  %table.table
    - for group in object_list
      %tr
Nicolas Joyard's avatar
Nicolas Joyard committed
7
8
9
10
        - 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

Jamesie Pic's avatar
Jamesie Pic committed
11
        %td
Nicolas Joyard's avatar
Nicolas Joyard committed
12
          %a{'href': '{{ group.get_absolute_url }}'}
Jamesie Pic's avatar
Jamesie Pic committed
13
14
15
16
            - if group.abbreviation
              ={group.abbreviation}
        %td
          %a{'href': '{{ group.get_absolute_url }}'}= group.name