views: refactor atom feed links.
* Fix comment & forum feeds to include search params. * Remove global post feeds (only include post feeds on post index).
This commit is contained in:
@@ -16,5 +16,3 @@
|
||||
</div>
|
||||
|
||||
<%= numbered_paginator(@comments) %>
|
||||
|
||||
<% content_for(:html_header, auto_discovery_link_tag(:atom, comments_url(format: "atom"), title: "Comments")) %>
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
<% meta_description "See comments on #{Danbooru.config.app_name}." %>
|
||||
|
||||
<div id="p-index-by-post">
|
||||
<% if !CurrentUser.user.is_builder? %>
|
||||
<div style="margin-bottom: 1em;">
|
||||
@@ -24,5 +22,3 @@
|
||||
</div>
|
||||
|
||||
<%= numbered_paginator(@posts) %>
|
||||
|
||||
<% content_for(:html_header, auto_discovery_link_tag(:atom, comments_url(:atom, search: { do_not_bump_post: true }), title: "Comments")) %>
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
<% meta_description "See comments on #{Danbooru.config.app_name}." %>
|
||||
|
||||
<% atom_feed_tag "Comments", comments_url(:atom, search: params.fetch(:search, {}).permit!) %>
|
||||
<%= render "secondary_links" %>
|
||||
|
||||
<div id="c-comments">
|
||||
<div id="a-index">
|
||||
<h1>Comments</h1>
|
||||
@@ -11,5 +16,3 @@
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "secondary_links" %>
|
||||
|
||||
Reference in New Issue
Block a user