Sha256: e4870fc798cec1e0c45a76c91e0d6ba60a95aeab0948df3935d51a1df5487d0e

Contents?: true

Size: 561 Bytes

Versions: 6

Compression:

Stored size: 561 Bytes

Contents

-# Link showing page number
  - available local variables
    page:          a page object for "this" page
    url:           url to this page
    current_page:  a page object for the currently displayed page
    num_pages:     total number of pages
    per_page:      number of items to fetch per page
    remote:        data-remote
-
%li{:class => 'page' + (page.current? ? ' active' : '')}
  - if page.current?
    %a= page
  - else
    = link_to page, url, opts = {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil}

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
twitter_bootstrap_builder-0.0.6 app/views/kaminari/twitter_bootstrap/_page.html.haml
twitter_bootstrap_builder-0.0.5 app/views/kaminari/twitter_bootstrap/_page.html.haml
twitter_bootstrap_builder-0.0.4 app/views/kaminari/twitter_bootstrap/_page.html.haml
twitter_bootstrap_builder-0.0.3 app/views/kaminari/twitter_bootstrap/_page.html.haml
twitter_bootstrap_builder-0.0.2 app/views/kaminari/twitter_bootstrap/_page.html.haml
scaffold_markup-0.0.1 app/views/kaminari/twitter_bootstrap/_page.html.haml