Sha256: 00bb7d7a7384609263becea41cdcf0403292ff9ed1b03dbd84c6fa59a3385148

Contents?: true

Size: 871 Bytes

Versions: 6

Compression:

Stored size: 871 Bytes

Contents

- pager = paginate(collection)
- if pager.has_multiple_pages?
  #pager
    - if pager.has_first_page?
      %a.first{ :href => pager.first_page_path }
        = t('dash.pager.first')
    - if pager.has_previous_page?
      %a.previous{ :href => pager.previous_page_path }
        = t('dash.pager.previous')
    - if pager.navigation.has_less_pages?
      %span.ellipsis ...
    - for page in pager.navigation.pages
      - if pager.is_current_page? page
        %span.page.current
          = page     
      - else
        %a.page{ :href => pager.page_path(page) }
          = page 
    - if pager.navigation.has_more_pages?
      %span.ellipsis ...
    - if pager.has_next_page?
      %a.next{ :href => pager.next_page_path }
        = t('dash.pager.next')    
    - if pager.has_last_page?
      %a.last{ :href => pager.last_page_path }
        = t('dash.pager.last')

Version data entries

6 entries across 4 versions & 1 rubygems

Version Path
rails_dash-0.0.6 app/views/rails_dash/shared/_pager.html.haml
rails_dash-0.0.5 app/views/rails_dash/shared/_pager.html.haml
rails_dash-0.0.4 lib/generators/dash/templates/pager.erb
rails_dash-0.0.4 test/dummy/app/views/dash/shared/_pager.html.haml
rails_dash-0.0.3 lib/generators/dash/templates/pager.erb
rails_dash-0.0.3 test/dummy/app/views/dash/shared/_pager.html.haml