From 1b9e3d687dfb1d63942a220b43236b84ccf5f3ef Mon Sep 17 00:00:00 2001 From: Albert Yi Date: Mon, 22 Oct 2018 17:19:32 -0700 Subject: [PATCH] add events for posts pages --- app/views/posts/index.html.erb | 8 ++++++++ app/views/posts/partials/common/_search.html.erb | 16 ---------------- app/views/posts/show.html.erb | 13 +++++++++++++ app/views/users/_sign_up_notice.html.erb | 12 +++++------- app/views/users/_upgrade_notice.html.erb | 12 +++++------- 5 files changed, 31 insertions(+), 30 deletions(-) diff --git a/app/views/posts/index.html.erb b/app/views/posts/index.html.erb index 3630775ae..cedbc084f 100644 --- a/app/views/posts/index.html.erb +++ b/app/views/posts/index.html.erb @@ -78,4 +78,12 @@ <% end %> <%= missed_post_search_count_js %> <%= render "posts/partials/index/seo_meta_tags" %> + <% end %> diff --git a/app/views/posts/partials/common/_search.html.erb b/app/views/posts/partials/common/_search.html.erb index ff46efd4a..c1ed001b2 100644 --- a/app/views/posts/partials/common/_search.html.erb +++ b/app/views/posts/partials/common/_search.html.erb @@ -13,19 +13,3 @@ <%= hidden_field_tag "ms", "1" %> <% end %> - -<% content_for(:html_header) do %> - -<% end %> diff --git a/app/views/posts/show.html.erb b/app/views/posts/show.html.erb index 35c6362f7..57563aaa5 100644 --- a/app/views/posts/show.html.erb +++ b/app/views/posts/show.html.erb @@ -192,6 +192,19 @@ <%= tag.meta name: "og:site", content: Danbooru.config.app_name %> <%= auto_discovery_link_tag(:atom, comments_url(:atom, search: { post_id: @post.id }), title: "Comments for post ##{@post.id}") %> + + <% end %> <%= render "posts/partials/common/secondary_links" %> diff --git a/app/views/users/_sign_up_notice.html.erb b/app/views/users/_sign_up_notice.html.erb index de313c910..d3b88ebff 100644 --- a/app/views/users/_sign_up_notice.html.erb +++ b/app/views/users/_sign_up_notice.html.erb @@ -6,12 +6,10 @@ <% content_for(:html_header) do %> <% end %> diff --git a/app/views/users/_upgrade_notice.html.erb b/app/views/users/_upgrade_notice.html.erb index 63a594904..199202dd6 100644 --- a/app/views/users/_upgrade_notice.html.erb +++ b/app/views/users/_upgrade_notice.html.erb @@ -6,12 +6,10 @@ <% content_for(:html_header) do %> <% end %> \ No newline at end of file