Revert "fixes #2044"

This reverts commit c358de020b.
This commit is contained in:
r888888888
2013-12-03 16:39:05 -08:00
parent c358de020b
commit fa13c94fc0
2 changed files with 4 additions and 4 deletions

View File

@@ -3,11 +3,11 @@ module PaginationHelper
html = '<div class="paginator"><menu>'
if records.any?
if params[:page] =~ /[ab]/ && params[:f] != "1"
html << '<li>' + link_to("< Previous", params.merge(:page => "a#{records[0].id}", :f => nil), :rel => "prev") + '</li>'
if params[:page] =~ /[ab]/
html << '<li>' + link_to("< Previous", params.merge(:page => "a#{records[0].id}"), :rel => "prev") + '</li>'
end
html << '<li>' + link_to("Next >", params.merge(:page => "b#{records[-1].id}", :f => nil), :rel => "next") + '</li>'
html << '<li>' + link_to("Next >", params.merge(:page => "b#{records[-1].id}"), :rel => "next") + '</li>'
end
html << "</menu></div>"

View File

@@ -5,7 +5,7 @@
<li><%= link_to "Popular", popular_explore_posts_path %></li>
<li><%= link_to "Hot", posts_path(:tags => "order:rank") %></li>
<% unless CurrentUser.is_anonymous? %>
<li><%= link_to "Favorites", favorites_path(:f => "1") %></li>
<li><%= link_to "Favorites", favorites_path %></li>
<li><%= link_to "Subscriptions", posts_path(:tags => "sub:#{CurrentUser.name}") %></li>
<% end %>
<li class="nonessential"><%= link_to "Changes", post_versions_path %></li>