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

- block content
4 5
  - include 'memopol_representatives/search.html'

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

9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
  %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