Sha256: fb415671a118dfad491b0713688f5323a0244637411d89b1ede5859d7121117d

Contents?: true

Size: 646 Bytes

Versions: 3

Compression:

Stored size: 646 Bytes

Contents

<div id="pagination">

  <%
    previous_text = "&larr; " + _t("Previous")
    next_text = _t("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

3 entries across 3 versions & 1 rubygems

Version Path
typus-1.0.0.pre8 app/views/admin/helpers/resources/_pagination.html.erb
typus-1.0.0.pre7 app/views/admin/helpers/resources/_pagination.html.erb
typus-1.0.0.pre6 app/views/admin/helpers/resources/_pagination.html.erb