Sha256: aff6c518aaa5c648a8b468dded37b7193aa1153b359e043394f6ee1d877537ff
Contents?: true
Size: 819 Bytes
Versions: 1
Compression:
Stored size: 819 Bytes
Contents
<% # per_page was added in 1.23.1; gems which add to resque-server don't pass that variable along so it would crash %> <% # without a default value %> <% per_page ||= 20 %> <%if start - per_page >= 0 || start + per_page <= size%> <p class='pagination'> <% if start - per_page >= 0 %> <a href="<%= current_page %>?start=<%= start - per_page %>" class='less'>« Previous</a> <% end %> <% (0...(size / per_page.to_f).ceil).each do |page_num| %> <% if start == page_num * per_page %> <%= page_num + 1 %> <% else %> <a href="<%= current_page %>?start=<%= page_num * per_page %>"> <%= page_num + 1 %></a> <% end %> <% end %> <% if start + per_page <= size %> <a href="<%= current_page %>?start=<%= start + per_page %>" class='more'>Next »</a> <% end %> </p> <%end%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
resque-1.24.1 | lib/resque/server/views/next_more.erb |