<% if params[:tags] =~ /search:/ %>
diff --git a/app/views/posts/show.html.erb b/app/views/posts/show.html.erb
index 423021def..c66adda2b 100644
--- a/app/views/posts/show.html.erb
+++ b/app/views/posts/show.html.erb
@@ -1,155 +1,151 @@
-
-
-
+
+ History
+
+ <%= link_to "Tags", post_versions_path(search: { post_id: @post.id }) %>
+ <%= link_to "Pools", pool_versions_path(search: { post_id: @post.id }) %>
+ <%= link_to "Notes", note_versions_path(search: { post_id: @post.id }) %>
+ <%= link_to "Moderation", post_events_path(@post.id) %>
+
+ <%= link_to "Replacements", post_replacements_path(search: {post_id: @post.id }) %>
+
+
+<% end %>
-
- <% if @post.presenter.has_nav_links?(self) %>
- <%= render "posts/partials/show/nav_links", :post => @post, :position => "top" %>
- <% end %>
+<% content_for(:content) do %>
+ <% if @post.presenter.has_nav_links?(self) %>
+ <%= render "posts/partials/show/nav_links", :post => @post, :position => "top" %>
+ <% end %>
- <%= render "posts/partials/show/notices", :post => @post %>
+ <%= render "posts/partials/show/notices", :post => @post %>
- <%= content_tag(:section, { id: "image-container" }.merge(PostPresenter.data_attributes(@post))) do -%>
-
-
- <%= render "posts/partials/show/embedded", post: @post %>
- <% end -%>
-
- <% if CurrentUser.is_member? %>
- <%= content_tag(:div, class: "fav-buttons fav-buttons-#{@post.is_favorited?}") do %>
- <%= form_tag(favorites_path(post_id: @post.id), method: "post", id: "add-fav-button", "data-remote": true) do %>
- <%= button_tag tag.i(class: "far fa-heart"), class: "ui-button ui-widget ui-corner-all", "data-disable-with": tag.i(class: "fas fa-spinner fa-spin") %>
- <% end %>
-
- <%= form_tag(favorite_path(@post.id), method: "delete", id: "remove-fav-button", "data-remote": true) do %>
- <%= button_tag tag.i(class: "fas fa-heart"), class: "ui-button ui-widget ui-corner-all", "data-disable-with": tag.i(class: "fas fa-spinner fa-spin") %>
- <% end %>
- <% end %>
- <% end %>
-
-
- <%= form_tag(mark_as_translated_post_path(@post), :class => "simple_form", :method => :put) do |f| %>
- <%= hidden_field_tag :tags_query, params[:q] %>
- <%= hidden_field_tag :pool_id, params[:pool_id] %>
-
-
-
- <%= check_box "post", "check_translation", :checked => @post.has_tag?("check_translation") %>
- Check translation
-
-
-
- <%= check_box "post", "partially_translated", :checked => @post.has_tag?("partially_translated") %>
- Partially translated
-
-
-
-
- <%= submit_tag "Mark as translated" %>
-
- <% end %>
-
-
- <% if @post.artist_commentary && @post.artist_commentary.any_field_present? %>
-
- <% end %>
-
- <% if @post.presenter.has_nav_links?(self) %>
- <%= render "posts/partials/show/nav_links", :post => @post, :position => "bottom" %>
- <% end %>
-
-
- Comments
-
- <% if RecommenderService.available_for_post?(@post) %>
- Recommended
- <% end %>
-
- <% if CurrentUser.is_member? && @post.visible? %>
- Edit
- <% end %>
-
-
- <% if RecommenderService.available_for_post?(@post) %>
-
- <% end %>
-
-
-
-
- <% if @post.has_notes? %>
- <% cache("p/#{@post.id}/n/#{@post.last_noted_at.to_i}") do %>
- <%= render :partial => "notes/note", :collection => @post.notes.active %>
- <% end %>
- <% end %>
-
-
- <% if CurrentUser.is_member? && @post.visible? %>
-
- <%= render "posts/partials/show/edit", :post => @post %>
-
- <% end %>
-
-
+ <%= content_tag(:section, { id: "image-container" }.merge(PostPresenter.data_attributes(@post))) do -%>
+
+
+ <%= render "posts/partials/show/embedded", post: @post %>
+ <% end -%>
<% if CurrentUser.is_member? %>
-
- <%= render "pool_elements/new" %>
-
+ <%= content_tag(:div, class: "fav-buttons fav-buttons-#{@post.is_favorited?}") do %>
+ <%= form_tag(favorites_path(post_id: @post.id), method: "post", id: "add-fav-button", "data-remote": true) do %>
+ <%= button_tag tag.i(class: "far fa-heart"), class: "ui-button ui-widget ui-corner-all", "data-disable-with": tag.i(class: "fas fa-spinner fa-spin") %>
+ <% end %>
-
+ <%= form_tag(favorite_path(@post.id), method: "delete", id: "remove-fav-button", "data-remote": true) do %>
+ <%= button_tag tag.i(class: "fas fa-heart"), class: "ui-button ui-widget ui-corner-all", "data-disable-with": tag.i(class: "fas fa-spinner fa-spin") %>
+ <% end %>
+ <% end %>
+ <% end %>
-
- <%= render "favorite_groups/add_to_favgroup_dialog", :post => @post %>
+
+ <%= form_tag(mark_as_translated_post_path(@post), :class => "simple_form", :method => :put) do |f| %>
+ <%= hidden_field_tag :tags_query, params[:q] %>
+ <%= hidden_field_tag :pool_id, params[:pool_id] %>
+
+
+
+ <%= check_box "post", "check_translation", :checked => @post.has_tag?("check_translation") %>
+ Check translation
+
+
+
+ <%= check_box "post", "partially_translated", :checked => @post.has_tag?("partially_translated") %>
+ Partially translated
+
+
+
+
+ <%= submit_tag "Mark as translated" %>
+
+ <% end %>
+
+
+ <% if @post.artist_commentary && @post.artist_commentary.any_field_present? %>
+
<% end %>
-
+
+ <% if @post.presenter.has_nav_links?(self) %>
+ <%= render "posts/partials/show/nav_links", :post => @post, :position => "bottom" %>
+ <% end %>
+
+
+ Comments
+
+ <% if RecommenderService.available_for_post?(@post) %>
+ Recommended
+ <% end %>
+
+ <% if CurrentUser.is_member? && @post.visible? %>
+ Edit
+ <% end %>
+
+
+ <% if RecommenderService.available_for_post?(@post) %>
+
+ <% end %>
+
+
+
+
+ <% if @post.has_notes? %>
+ <% cache("p/#{@post.id}/n/#{@post.last_noted_at.to_i}") do %>
+ <%= render :partial => "notes/note", :collection => @post.notes.active %>
+ <% end %>
+ <% end %>
+
+
+ <% if CurrentUser.is_member? && @post.visible? %>
+
+ <%= render "posts/partials/show/edit", :post => @post %>
+
+ <% end %>
+<% end %>
+
+<% if CurrentUser.is_member? %>
+
+ <%= render "pool_elements/new" %>
+
+
+
+
+
+ <%= render "favorite_groups/add_to_favgroup_dialog", :post => @post %>
+
+<% end %>
<%= post_view_count_js %>
diff --git a/app/views/wiki_page_versions/diff.html.erb b/app/views/wiki_page_versions/diff.html.erb
index bb5f9b5eb..b60410d8c 100644
--- a/app/views/wiki_page_versions/diff.html.erb
+++ b/app/views/wiki_page_versions/diff.html.erb
@@ -1,18 +1,18 @@
-
-
-
Wiki Page: <%= @thispage.title %>
+<%= render "wiki_pages/sidebar" %>
- <% if @thispage.visible? %>
-
Showing differences between <%= compact_time @thispage.updated_at %> (<%= link_to_user @thispage.updater %>) and <%= compact_time @otherpage.updated_at %> (<%= link_to_user @otherpage.updater %>)
+<% content_for(:content) do %>
+
Wiki Page: <%= @thispage.title %>
-
- <%= wiki_page_diff(@thispage, @otherpage) %>
-
- <% else %>
-
The artist requested removal of this page.
- <% end %>
-
-
+ <% if @thispage.visible? %>
+
Showing differences between <%= compact_time @thispage.updated_at %> (<%= link_to_user @thispage.updater %>) and <%= compact_time @otherpage.updated_at %> (<%= link_to_user @otherpage.updater %>)
+
+
+ <%= wiki_page_diff(@thispage, @otherpage) %>
+
+ <% else %>
+
The artist requested removal of this page.
+ <% end %>
+<% end %>
<%= render "wiki_pages/secondary_links" %>
diff --git a/app/views/wiki_page_versions/index.html.erb b/app/views/wiki_page_versions/index.html.erb
index d0e595c34..57dc219d1 100644
--- a/app/views/wiki_page_versions/index.html.erb
+++ b/app/views/wiki_page_versions/index.html.erb
@@ -1,19 +1,15 @@
-
-
- <%= render "wiki_pages/sidebar" %>
+<%= render "wiki_pages/sidebar" %>
-
- Wiki Page History
+<% content_for(:content) do %>
+ Wiki Page History
- <% if params.dig(:search, :wiki_page_id).present? %>
- <%= render "page_listing" %>
- <% else %>
- <%= render "global_listing" %>
- <% end %>
+ <% if params.dig(:search, :wiki_page_id).present? %>
+ <%= render "page_listing" %>
+ <% else %>
+ <%= render "global_listing" %>
+ <% end %>
- <%= numbered_paginator(@wiki_page_versions) %>
-
-
-
+ <%= numbered_paginator(@wiki_page_versions) %>
+<% end %>
<%= render "wiki_pages/secondary_links" %>
diff --git a/app/views/wiki_page_versions/show.html.erb b/app/views/wiki_page_versions/show.html.erb
index 3db899bf7..a4872aa71 100644
--- a/app/views/wiki_page_versions/show.html.erb
+++ b/app/views/wiki_page_versions/show.html.erb
@@ -1,24 +1,20 @@
-
-
- <%= render "wiki_pages/sidebar" %>
+<%= render "wiki_pages/sidebar" %>
-
- <%= @wiki_page_version.pretty_title %>
- <%= time_ago_in_words_tagged(@wiki_page_version.updated_at) %>
+<% content_for(:content) do %>
+ <%= @wiki_page_version.pretty_title %>
+ <%= time_ago_in_words_tagged(@wiki_page_version.updated_at) %>
-
- <% if @wiki_page_version.visible? %>
- <% if @wiki_page_version.other_names.present? %>
-
<%= wiki_page_other_names_list(@wiki_page_version) %>
- <% end %>
+
+ <% if @wiki_page_version.visible? %>
+ <% if @wiki_page_version.other_names.present? %>
+
<%= wiki_page_other_names_list(@wiki_page_version) %>
+ <% end %>
- <%= format_text(@wiki_page_version.body) %>
- <% else %>
-
The artist has requested removal of this page.
- <% end %>
-
-
+ <%= format_text(@wiki_page_version.body) %>
+ <% else %>
+
The artist has requested removal of this page.
+ <% end %>
-
+<% end %>
<%= render "wiki_pages/secondary_links" %>
diff --git a/app/views/wiki_pages/_sidebar.html.erb b/app/views/wiki_pages/_sidebar.html.erb
index 461e3bccf..c86163280 100644
--- a/app/views/wiki_pages/_sidebar.html.erb
+++ b/app/views/wiki_pages/_sidebar.html.erb
@@ -1,4 +1,4 @@
-
+<% end %>
diff --git a/app/views/wiki_pages/edit.html.erb b/app/views/wiki_pages/edit.html.erb
index 5d3eb65eb..93f133402 100644
--- a/app/views/wiki_pages/edit.html.erb
+++ b/app/views/wiki_pages/edit.html.erb
@@ -1,17 +1,13 @@
-
-
- <%= render "sidebar" %>
+<%= render "sidebar" %>
-
- Edit Wiki
+<% content_for(:content) do %>
+ Edit Wiki
- <% if @wiki_page.visible? %>
- <%= render "form" %>
- <% else %>
- The artist requested removal of this page.
- <% end %>
-
-
-
+ <% if @wiki_page.visible? %>
+ <%= render "form" %>
+ <% else %>
+
The artist requested removal of this page.
+ <% end %>
+<% end %>
<%= render "secondary_links" %>
diff --git a/app/views/wiki_pages/index.html.erb b/app/views/wiki_pages/index.html.erb
index 661fa5791..1dac46316 100644
--- a/app/views/wiki_pages/index.html.erb
+++ b/app/views/wiki_pages/index.html.erb
@@ -1,30 +1,26 @@
-
-
- <%= render "sidebar" %>
+<%= render "sidebar" %>
-
- Wiki
+<% content_for(:content) do %>
+ Wiki
-
-
-
- Title
- Last edited
-
-
-
- <% @wiki_pages.each do |wiki_page| %>
-
- <%= link_to wiki_page.pretty_title, wiki_page_path(wiki_page, :noredirect => 1) %>
- <%= wiki_page.updated_at.strftime("%Y-%m-%d %H:%M") %> by <%= h link_to_user wiki_page.updater %>
-
- <% end %>
-
-
+
+
+
+ Title
+ Last edited
+
+
+
+ <% @wiki_pages.each do |wiki_page| %>
+
+ <%= link_to wiki_page.pretty_title, wiki_page_path(wiki_page, :noredirect => 1) %>
+ <%= wiki_page.updated_at.strftime("%Y-%m-%d %H:%M") %> by <%= h link_to_user wiki_page.updater %>
+
+ <% end %>
+
+
- <%= numbered_paginator(@wiki_pages) %>
-
-
-
+ <%= numbered_paginator(@wiki_pages) %>
+<% end %>
<%= render "secondary_links" %>
diff --git a/app/views/wiki_pages/new.html.erb b/app/views/wiki_pages/new.html.erb
index a8723554d..2434d0011 100644
--- a/app/views/wiki_pages/new.html.erb
+++ b/app/views/wiki_pages/new.html.erb
@@ -1,26 +1,17 @@
-
-
- <%= render "sidebar" %>
+<%= render "sidebar" %>
-
- New Wiki Page
+<% content_for(:content) do %>
+ New Wiki Page
- <% if @wiki_page.title.present? %>
-
- This wiki page does not yet exist. The form below will allow you to create a new page for <%= @wiki_page.title %>. It will act as an explanation on how to use the tag for other users on the site.
-
- <% end %>
+ <% if @wiki_page.title.present? %>
+
+ This wiki page does not yet exist. The form below will allow you to create a new page for <%= @wiki_page.title %>. It will act as an explanation on how to use the tag for other users on the site.
+
+ <% end %>
- <%= render "form" %>
-
- <%= wiki_page_alias_and_implication_list(@wiki_page)%>
-
- <%= wiki_page_post_previews(@wiki_page) %>
-
-
-
-
-
-
+ <%= render "form" %>
+ <%= wiki_page_alias_and_implication_list(@wiki_page)%>
+ <%= wiki_page_post_previews(@wiki_page) %>
+<% end %>
<%= render "secondary_links" %>
diff --git a/app/views/wiki_pages/show.html.erb b/app/views/wiki_pages/show.html.erb
index 113ba7515..593bc8964 100644
--- a/app/views/wiki_pages/show.html.erb
+++ b/app/views/wiki_pages/show.html.erb
@@ -1,43 +1,38 @@
-
-
- <%= render "sidebar" %>
+<%= render "sidebar" %>
-
-
+<% content_for(:content) do %>
+
+ <%= link_to @wiki_page.pretty_title, posts_path(:tags => @wiki_page.title), :class => "tag-type-#{@wiki_page.category_name}" %>
- <%= link_to @wiki_page.pretty_title, posts_path(:tags => @wiki_page.title), :class => "tag-type-#{@wiki_page.category_name}" %>
+ <% if @wiki_page.is_locked? %>
+ (locked)
+ <% end %>
- <% if @wiki_page.is_locked? %>
- (locked)
- <% end %>
+ <% if @wiki_page.is_deleted? %>
+ (deleted)
+ <% end %>
+
- <% if @wiki_page.is_deleted? %>
- (deleted)
- <% end %>
-
+
+ <% if @wiki_page.visible? %>
+ <% if @wiki_page.other_names.present? %>
+
<%= wiki_page_other_names_list(@wiki_page) %>
+ <% end %>
-
- <% if @wiki_page.visible? %>
- <% if @wiki_page.other_names.present? %>
-
<%= wiki_page_other_names_list(@wiki_page) %>
- <% end %>
+ <%= format_text(@wiki_page.body) %>
- <%= format_text(@wiki_page.body) %>
+ <% if @wiki_page.artist %>
+
<%= link_to "View artist", @wiki_page.artist %>
+ <% end %>
- <% if @wiki_page.artist %>
-
<%= link_to "View artist", @wiki_page.artist %>
- <% end %>
-
- <%= wiki_page_alias_and_implication_list(@wiki_page) %>
- <% else %>
-
This artist has requested removal of their information.
- <% end %>
-
-
- <%= wiki_page_post_previews(@wiki_page) %>
-
+ <%= wiki_page_alias_and_implication_list(@wiki_page) %>
+ <% else %>
+
This artist has requested removal of their information.
+ <% end %>
-
+
+ <%= wiki_page_post_previews(@wiki_page) %>
+<% end %>
<% content_for(:page_title) do %>
Wiki - <%= @wiki_page.pretty_title %> - <%= Danbooru.config.app_name %>
diff --git a/app/views/wiki_pages/show_or_new.html.erb b/app/views/wiki_pages/show_or_new.html.erb
index fd4bdb6d1..904fd7195 100644
--- a/app/views/wiki_pages/show_or_new.html.erb
+++ b/app/views/wiki_pages/show_or_new.html.erb
@@ -1,25 +1,21 @@
-
-
- <%= render "sidebar" %>
+<%= render "sidebar" %>
-
-
- <%= link_to @wiki_page.pretty_title, posts_path(:tags => @wiki_page.title), :class => "tag-type-#{@wiki_page.category_name}" %>
-
-
-
This wiki page does not exist. <%= link_to "Create new wiki page", new_wiki_page_path(:wiki_page => {:title => params[:title]}) %>.
-
-
- <% if @wiki_page.artist.present? %>
- <%= link_to "View artist", @wiki_page.artist %>
- <% end %>
-
- <%= wiki_page_alias_and_implication_list(@wiki_page)%>
-
- <%= wiki_page_post_previews(@wiki_page) %>
-
+<% content_for(:content) do %>
+
+ <%= link_to @wiki_page.pretty_title, posts_path(:tags => @wiki_page.title), :class => "tag-type-#{@wiki_page.category_name}" %>
+
+
+
This wiki page does not exist. <%= link_to "Create new wiki page", new_wiki_page_path(:wiki_page => {:title => params[:title]}) %>.
-
+
+ <% if @wiki_page.artist.present? %>
+
<%= link_to "View artist", @wiki_page.artist %>
+ <% end %>
+
+ <%= wiki_page_alias_and_implication_list(@wiki_page)%>
+
+ <%= wiki_page_post_previews(@wiki_page) %>
+<% end %>
<%= render "secondary_links" %>
Before commenting, read the <%= link_to "how to comment guide", wiki_pages_path(:search => {:title => "howto:comment"}) %>.
- <% end %> - <%= render "comments/partials/index/list", comments: @comments, post: @post, page: :post %> -