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

- block content
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  - include 'memopol_representatives/search.html'

  %table
    - for representative in representatives
      %tr
        - include 'memopol_representatives/representative_block.html'

  .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