fix error #1562
This commit is contained in:
@@ -208,13 +208,13 @@ class PostPresenter < Presenter
|
|||||||
pool_html << '</span> '
|
pool_html << '</span> '
|
||||||
|
|
||||||
if pool.neighbors(@post).next
|
if pool.neighbors(@post).next
|
||||||
pool_html << template.link_to("next ›".html_safe, template.post_path(pool.neighbors(@post).next, :pool_id => pool.id), :class => "#{klass} next")
|
pool_html << template.link_to("next ›".html_safe, template.post_path(pool.neighbors(@post).next, :pool_id => pool.id), :rel => next_rel, :class => "#{klass} next")
|
||||||
match_found = true
|
match_found = true
|
||||||
else
|
else
|
||||||
pool_html << '<span class="next">next ›</span>'
|
pool_html << '<span class="next">next ›</span>'
|
||||||
end
|
end
|
||||||
|
|
||||||
pool_html << template.link_to("»".html_safe, template.post_path(pool.post_id_array.last, :pool_id => pool.id), :rel => next_rel, :class => "#{klass} last")
|
pool_html << template.link_to("»".html_safe, template.post_path(pool.post_id_array.last, :pool_id => pool.id), :class => "#{klass} last")
|
||||||
|
|
||||||
pool_html << "</li>"
|
pool_html << "</li>"
|
||||||
pool_html
|
pool_html
|
||||||
|
|||||||
Reference in New Issue
Block a user