representative_list.haml 666 Bytes
Newer Older
luxcem's avatar
luxcem committed
1
2
3
- extends "base.html"

- block content
luxcem's avatar
luxcem committed
4

5
  - include 'legislature/search.html'
6

7
8
9
  %p
    Number of representatives: {{ representative_num  }}

10
11
12
  %table
    - for representative in representatives
      %tr
13
        - include 'legislature/representative_block.html'
14
15
16
17
18
19
20
21
22
23
24

  .pagination
    %span.step-links
      - if representatives.has_previous
        %a{'href': '?={queries.urlencode}&page=={representatives.previous_page_number}'} previous

      %span.current
        Page ={representatives.number} of ={representatives.paginator.num_pages}

      - if representatives.has_next
        %a{'href': '?={queries.urlencode}&page=={representatives.next_page_number}'} next