views: factor out paginator component.
* Refactor the paginator into a ViewComponent.
* Fix inconsistent spacing between paginator items.
* Fix a bug where the sequential paginator generated the wrong next /
previous page links in the <link rel="{next|prev}"> tags in the <head>.
* Always include the final page as a hidden html element, so that it can
be unhidden with custom CSS.
* Make it easier to change the pagination window.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<% meta_description(DText.excerpt(@forum_topic.original_post&.body)) %>
|
||||
|
||||
<% atom_feed_tag(@forum_topic.title, forum_topic_url(@forum_topic.id, format: :atom)) %>
|
||||
<%= render "meta_links", collection: @forum_posts %>
|
||||
<%= render_meta_links @forum_posts %>
|
||||
<%= render "secondary_links" %>
|
||||
|
||||
<div id="c-forum-topics">
|
||||
|
||||
Reference in New Issue
Block a user