pagination links need proper ids and page numbers
parent
44621a075f
commit
8570b39a24
|
@ -2,7 +2,7 @@
|
||||||
<div id="pagination_links">
|
<div id="pagination_links">
|
||||||
|
|
||||||
<% if @page > 0 -%>
|
<% if @page > 0 -%>
|
||||||
<a href="<%= url(@url_key, :page => 0, :id => @paginate_id) -%>"><img src="/images/go-first.png" alt="First Page" /></a> <a href="<%= url(@url_key, :page => 0, :id => @paginate_id) -%>"><img src="/images/go-previous.png" alt="Previous Page" /></a>
|
<a href="<%= url(@url_key, :page => 0, :id => @paginate_id) -%>"><img src="/images/go-first.png" alt="First Page" /></a> <a href="<%= url(@url_key, :page => @page - 1, :id => @paginate_id) -%>"><img src="/images/go-previous.png" alt="Previous Page" /></a>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
||||||
<% if @page_count > 1 -%>
|
<% if @page_count > 1 -%>
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if @page < @page_count - 1 -%>
|
<% if @page < @page_count - 1 -%>
|
||||||
<a href="<%= url(@url_key, :page => @page + 1, :id => @paginate_id) -%>"><img src="/images/go-next.png" alt="Next Page" /></a> <a href="<%= url(@url_key, :page => @page_count - 1) -%>"><img src="/images/go-last.png" alt="Last Page" /></a>
|
<a href="<%= url(@url_key, :page => @page + 1, :id => @paginate_id) -%>"><img src="/images/go-next.png" alt="Next Page" /></a> <a href="<%= url(@url_key, :page => @page_count - 1, :id => @paginate_id) -%>"><img src="/images/go-last.png" alt="Last Page" /></a>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
||||||
|
|
Reference in New Issue