Sha256: d58b5d0a530e8549eaacdd51a98e8a640f8d2530fc18132dcb40857463eb5483

Contents?: true

Size: 1.71 KB

Versions: 15

Compression:

Stored size: 1.71 KB

Contents

<div class="list_info clearfix">

  <ul class="pagination">
    <li class="summary">
      <%= @paginate.first_index%> - <%= @paginate.last_index%> / <%= @paginate.total_size%>
    </li>
    <% if @paginate.max_page>1 %>
      <% if @paginate.first_page? %>
        <li class="prev off">&lt;&lt;newer</li>
      <% else %>
        <li class="prev"><a href="<%= @paginate.page_url(:prev)%>">&lt;&lt;newer</a></li>
      <% end %>

      <% 1.upto(6<@paginate.max_page ? 6 : @paginate.max_page) do |pg| %>
        <% if @paginate.page==pg %>
          <li class="current"><%=pg%></li>
        <% else %>
          <li><a href="<%= @paginate.page_url(pg)%>"><%=pg%></a></li>
        <% end %>
      <% end %>

      <% if @paginate.max_page > 6 %>
        <% if @paginate.max_page!=@paginate.page %>
          <% if @paginate.page>7 %>
            <li class="off">...</li>
          <% end %>
          <% if @paginate.page>6 %>
            <li class="current"><%=@paginate.page%></li>
          <% end %>
        <% end %>
        <% if @paginate.max_page>7 && @paginate.page+1!=@paginate.max_page %>
          <li class="off">...</li>
        <% end %>

        <% if @paginate.max_page==@paginate.page %>
          <li class="current"><%=@paginate.max_page%></li>
        <% else %>
          <li><a href="<%= @paginate.page_url(@paginate.max_page)%>"><%=@paginate.max_page%></a></li>
        <% end %>
      <% end %>

      <% if @paginate.last_page? %>
        <li class="next off">older&gt;&gt;</li>
      <% else %>
        <li class="next"><a href="<%= @paginate.page_url(:next)%>">older&gt;&gt;</a></li>
      <% end %>
    <% end %>

  </ul>
    <div class="dump">
        <a href="<%= @dump_url%>" target="_blank">Dump</a>
    </div>
</div>

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
resque-cleanerer-0.5.0 lib/resque_cleaner/server/views/_paginate.erb
resque-cleaner-0.4.1 lib/resque_cleaner/server/views/_paginate.erb
resque-cleaner-0.4.0 lib/resque_cleaner/server/views/_paginate.erb
resque-cleaner-0.3.2 lib/resque_cleaner/server/views/_paginate.erb
resque-cleaner-0.3.1 lib/resque_cleaner/server/views/_paginate.erb
misha-resque-cleaner-0.3.0 lib/resque_cleaner/server/views/_paginate.erb
resque-cleaner-0.3.0 lib/resque_cleaner/server/views/_paginate.erb
resque-cleaner-0.2.12 lib/resque_cleaner/server/views/_paginate.erb
resque-cleaner-0.2.11 lib/resque_cleaner/server/views/_paginate.erb
resque-cleaner-0.2.10 lib/resque_cleaner/server/views/_paginate.erb
resque-cleaner-0.2.9 lib/resque_cleaner/server/views/_paginate.erb
resque-cleaner-0.2.8 lib/resque_cleaner/server/views/_paginate.erb
resque-cleaner-0.2.7 lib/resque_cleaner/server/views/_paginate.erb
resque-cleaner-0.2.6 lib/resque_cleaner/server/views/_paginate.erb
resque-cleaner-0.2.5 lib/resque_cleaner/server/views/_paginate.erb