FIX: Clean up next/prev rel links

This commit is contained in:
Robin Ward
2014-03-03 12:56:37 -05:00
parent 6143753fef
commit 158487dfc2
4 changed files with 31 additions and 10 deletions

View File

@@ -7,7 +7,7 @@
<% if @list.topics.length > 0 %>
<p>
<% if params[:page].to_i > 1 %>
<% if params[:page].to_i > 0 %>
<a href="<%= @list.prev_topics_url.sub('.json?','?') %>" rel="prev"><%= t 'prev_page'%></a> &nbsp;
<% end %>
<b><a href="<%= @list.more_topics_url.sub('.json?','?') %>" rel="next"><%= t 'next_page'%></a></b>