Sha256: 416e779a9eb2f7e85be1a1f7e3f85d9dcb067e2378e1c3cc6db3c4738473ee68

Contents?: true

Size: 644 Bytes

Versions: 5

Compression:

Stored size: 644 Bytes

Contents

<div id="pagination">

  <%
    previous_text = "&larr; " + _("Previous")
    next_text = _("Next") + " &rarr;"
  %>

  <div class="left">

    <% if @items.prev? %>
      <%= link_to raw(previous_text), params.merge(:page => @items.prev.number, :anchor => @options[:anchor]) %>
    <% else %>
      <span class="disabled"><%= raw(previous_text) %></span>
    <% end %>

  </div>

  <div class="right">

    <% if @items.next? %>
      <%= link_to raw(next_text), params.merge(:page => @items.next.number, :anchor => @options[:anchor]) %>
    <% else %>
      <span class="disabled"><%= raw(next_text) %></span>
    <% end %>

  </div>

</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
typus-1.0.0.pre5 app/views/admin/helpers/resources/_pagination.html.erb
typus-1.0.0.pre4 app/views/admin/helpers/resources/_pagination.html.erb
typus-1.0.0.pre3 app/views/admin/helpers/resources/_pagination.html.erb
typus-1.0.0.pre2 app/views/admin/helpers/resources/_pagination.html.erb
typus-1.0.0.pre app/views/admin/helpers/resources/_pagination.html.erb