fixed post listing
This commit is contained in:
@@ -11,11 +11,11 @@ module PaginationHelper
|
||||
html = "<menu>"
|
||||
|
||||
unless records.is_first_page?
|
||||
html << '<li>' + link_to("« Previous", params.merge(:after_id => records.first_id)) + '</li>'
|
||||
html << '<li>' + link_to("« Previous", params.merge(:page => "b#{records.first_id}")) + '</li>'
|
||||
end
|
||||
|
||||
unless records.is_last_page?
|
||||
html << '<li>' + link_to("Next »", params.merge(:before_id => records.last_id)) + '</li>'
|
||||
html << '<li>' + link_to("Next »", params.merge(:page => "a#{records.last_id}")) + '</li>'
|
||||
end
|
||||
|
||||
html << "</menu>"
|
||||
|
||||
Reference in New Issue
Block a user