Sha256: a15af65dcda8592e7883556853b2447d364ca1091a0cabd857307f55d7e80f61

Contents?: true

Size: 653 Bytes

Versions: 2

Compression:

Stored size: 653 Bytes

Contents

<div id="pagination">

  <div class="left">

    <% previous_text = ("&larr; " + _t("Previous")).html_safe %>

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

  </div>

  <div class="right">

    <% next_text = (_t("Next") + " &rarr;").html_safe %>

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

  </div>

</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
typus-1.0.0.pre10 app/views/admin/helpers/resources/_pagination.html.erb
typus-1.0.0.pre9 app/views/admin/helpers/resources/_pagination.html.erb