Sha256: 7dd29ae67af4607376e3fe2a3995a7f02c480fa150ea3340c0d53889865ff296

Contents?: true

Size: 422 Bytes

Versions: 9

Compression:

Stored size: 422 Bytes

Contents

- if collection.page_count > 1
  %p
    - if collection.previous_page?
      = link_to 'zurückblättern', :page => collection.page-1
    - 1.upto(collection.page_count) do |page|
      - if page == collection.page
        = page.to_s
      - else
        = link_to page, :page => page
      = separator unless collection.last_page?
    - if collection.next_page?
      = link_to 'vorblättern', :page => collection.page+1

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
view_models-2.0.1 lib/rails2/generators/view_models/templates/views/view_models/collection/_pagination.html.haml
view_models-2.0.0.ruby19 lib/rails2/generators/view_models/templates/views/view_models/collection/_pagination.html.haml
view_models-2.0.0 lib/rails2/generators/view_models/templates/views/view_models/collection/_pagination.html.haml
view_models-1.5.7 generators/view_models/templates/views/view_models/collection/_pagination.html.haml
view_models-1.5.6 generators/view_models/templates/views/view_models/collection/_pagination.html.haml
view_models-1.5.5 generators/view_models/templates/views/view_models/collection/_pagination.html.haml
view_models-1.5.4 generators/view_models/templates/views/view_models/collection/_pagination.html.haml
view_models-1.5.3 generators/view_models/templates/views/view_models/collection/_pagination.html.haml
view_models-1.5.2 generators/view_models/templates/views/view_models/collection/_pagination.html.haml