Sha256: 5b816d80d61339f950fd59319fba86e3cfd214c3f8aa6867c1c47c2c22ca4f18

Contents?: true

Size: 657 Bytes

Versions: 15

Compression:

Stored size: 657 Bytes

Contents

<ul class="pure-paginator paginator">
  <% if @paginator.prev_page %>
    <% prev_link = path_to_page(@paginator.prev_page, @tag) %>
    <li> <a class="pure-button prev" href="<%= prev_link %>">&#171;</a> </li>
  <% end %>


  <% @paginator.pages.each do |page| %>
    <% page_class = 'pure-button' %>
    <% page_class << ' pure-button-active' if @paginator.page == page %>

    <li><%= link_to page, path_to_page(page, @tag), class: page_class %></li>
  <% end %>


  <% if @paginator.next_page %>
    <% next_link = path_to_page(@paginator.next_page, @tag) %>
    <li><a class="pure-button prev" href="<%= next_link %>">&#187;</a></li>
  <% end %>
</ul>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
blogo-0.1.4 app/views/blogo/posts/_paginator.html.erb
blogo-0.1.3 app/views/blogo/posts/_paginator.html.erb
blogo-0.1.2 app/views/blogo/posts/_paginator.html.erb
blogo-0.1.1 app/views/blogo/posts/_paginator.html.erb
blogo-0.1.0 app/views/blogo/posts/_paginator.html.erb
blogo-0.0.10 app/views/blogo/posts/_paginator.html.erb
blogo-0.0.9 app/views/blogo/posts/_paginator.html.erb
blogo-0.0.8 app/views/blogo/posts/_paginator.html.erb
blogo-0.0.7 app/views/blogo/posts/_paginator.html.erb
blogo-0.0.6 app/views/blogo/posts/_paginator.html.erb
blogo-0.0.5 app/views/blogo/posts/_paginator.html.erb
blogo-0.0.4 app/views/blogo/posts/_paginator.html.erb
blogo-0.0.3 app/views/blogo/posts/_paginator.html.erb
blogo-0.0.2 app/views/blogo/posts/_paginator.html.erb
blogo-0.0.1 app/views/blogo/posts/_paginator.html.erb