Fix page controller and action IDs

- Also fix affected CSS and JS files
This commit is contained in:
BrokenEagle
2017-12-28 10:20:12 -08:00
parent b48d5e59ad
commit 31d3215dad
35 changed files with 374 additions and 332 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
Danbooru.ForumPost = {}; Danbooru.ForumPost = {};
Danbooru.ForumPost.initialize_all = function() { Danbooru.ForumPost.initialize_all = function() {
if ($("#c-forum-topics #a-show").length) {; if ($("#c-forum-topics #a-show,#c-forum-posts #a-show").length) {;
this.initialize_edit_links(); this.initialize_edit_links();
Danbooru.keydown("e", "edit", function(e) { Danbooru.keydown("e", "edit", function(e) {
@@ -1,4 +1,4 @@
#c-burs { #c-bulk-update-requests {
s.approved { s.approved {
color: green; color: green;
} }
+2 -2
View File
@@ -1,5 +1,5 @@
<div class="bans"> <div id="c-bans">
<div class="new"> <div id="a-edit">
<h1>Edit Ban</h1> <h1>Edit Ban</h1>
<%= render "form", :ban => @ban %> <%= render "form", :ban => @ban %>
</div> </div>
+2 -2
View File
@@ -1,5 +1,5 @@
<div class="bans"> <div id="c-bans">
<div class="show"> <div id="a-show">
<h1>Show Ban</h1> <h1>Show Ban</h1>
<ul style="margin-bottom: 1em;"> <ul style="margin-bottom: 1em;">
<li><strong>User</strong>: <%= link_to_user(@ban.user) %></li> <li><strong>User</strong>: <%= link_to_user(@ban.user) %></li>
+2 -2
View File
@@ -1,5 +1,5 @@
<div class="bulk-update-requests"> <div id="c-bulk-update-requests">
<div class="new"> <div id="a-edit">
<h1>Edit Bulk Update Request</h1> <h1>Edit Bulk Update Request</h1>
<%= render "form" %> <%= render "form" %>
</div> </div>
@@ -1,4 +1,4 @@
<div id="c-burs"> <div id="c-bulk-update-requests">
<div id="a-index"> <div id="a-index">
<h1>Bulk Update Requests</h1> <h1>Bulk Update Requests</h1>
+2 -2
View File
@@ -1,5 +1,5 @@
<div class="bulk-update-requests"> <div id="c-bulk-update-requests">
<div class="new"> <div id="a-new">
<h1>New Bulk Update Request</h1> <h1>New Bulk Update Request</h1>
<%= render "form" %> <%= render "form" %>
+1 -1
View File
@@ -1,5 +1,5 @@
<div id="c-explore-posts"> <div id="c-explore-posts">
<div id="a-popular"> <div id="a-viewed">
<h1>Most Viewed - <%= @post_set.presenter.date %></h1> <h1>Most Viewed - <%= @post_set.presenter.date %></h1>
<%= render "posts/partials/common/inline_blacklist" %> <%= render "posts/partials/common/inline_blacklist" %>
+1 -1
View File
@@ -1,4 +1,4 @@
<div id="c-forum-topics"> <div id="c-forum-posts">
<div id="a-edit"> <div id="a-edit">
<h1>Edit Forum Post</h1> <h1>Edit Forum Post</h1>
+1 -1
View File
@@ -1,4 +1,4 @@
<div id="c-forum-topics"> <div id="c-forum-posts">
<div id="a-new"> <div id="a-new">
<% if @forum_topic %> <% if @forum_topic %>
<h1>Reply to <%= @forum_topic.title %></h1> <h1>Reply to <%= @forum_topic.title %></h1>
+1 -1
View File
@@ -1,4 +1,4 @@
<div id="c-forum-topics"> <div id="c-forum-posts">
<div id="a-search"> <div id="a-search">
<h1>Search Forum</h1> <h1>Search Forum</h1>
<%= form_tag(forum_posts_path, :method => :get, :class => "simple_form") do %> <%= form_tag(forum_posts_path, :method => :get, :class => "simple_form") do %>
+1 -1
View File
@@ -1,4 +1,4 @@
<div id="c-forum-topics"> <div id="c-forum-posts">
<div id="a-show" class="single-forum-post list-of-forum-posts"> <div id="a-show" class="single-forum-post list-of-forum-posts">
<h1>Topic: <%= @forum_post.topic.title %></h1> <h1>Topic: <%= @forum_post.topic.title %></h1>
<%= render "forum_post", :forum_post => @forum_post %> <%= render "forum_post", :forum_post => @forum_post %>
@@ -1,4 +1,4 @@
<div id="c-users"> <div id="c-maintenance-user-dmail-filters">
<div id="a-edit"> <div id="a-edit">
<h1>Edit Message Filters</h1> <h1>Edit Message Filters</h1>
@@ -1,3 +1,5 @@
<div id="c-maintenance-user-email-changes">
<div id="a-new">
<h1>Change Email</h1> <h1>Change Email</h1>
<p>You must confirm your password in order to change your email address.</p> <p>You must confirm your password in order to change your email address.</p>
@@ -17,3 +19,5 @@
<%= submit_tag "Submit" %> <%= submit_tag "Submit" %>
</div> </div>
<% end %> <% end %>
</div>
</div>
@@ -1,3 +1,5 @@
<div id="c-maintenance-user-email-notifications">
<div id="a-show">
<h1>Unsubscribe</h1> <h1>Unsubscribe</h1>
<p>Do you wish to stop receiving all email notifications?</p> <p>Do you wish to stop receiving all email notifications?</p>
@@ -7,3 +9,5 @@
<%= hidden_field_tag "user_id", params[:user_id] %> <%= hidden_field_tag "user_id", params[:user_id] %>
<%= submit_tag "Yes" %> <%= submit_tag "Yes" %>
<% end %> <% end %>
</div>
</div>
@@ -1,4 +1,4 @@
<div id="c-users"> <div id="c-maintenance-user-passwords">
<div id="a-edit"> <div id="a-edit">
<h1>Change Password</h1> <h1>Change Password</h1>
@@ -1,5 +1,5 @@
<div id="c-moderator-post-queues"> <div id="c-moderator-post-queues">
<div id="a-show"> <div id="a-random">
<div> <div>
<h1>Moderation Queue</h1> <h1>Moderation Queue</h1>
+1 -1
View File
@@ -1,5 +1,5 @@
<div id="c-news-updates"> <div id="c-news-updates">
<div id="a-new"> <div id="a-edit">
<h1>Edit Update</h1> <h1>Edit Update</h1>
<%= simple_form_for(@news_update) do |f| %> <%= simple_form_for(@news_update) do |f| %>
+3 -1
View File
@@ -1,4 +1,5 @@
<div> <div id="c-related-tags">
<div id="a-show">
<h1>Related tags</h1> <h1>Related tags</h1>
<section> <section>
<%= form_tag(related_tag_path, :method => :get) do %> <%= form_tag(related_tag_path, :method => :get) do %>
@@ -29,6 +30,7 @@
</section> </section>
<% end %> <% end %>
</div> </div>
</div>
<%= render "tags/secondary_links" %> <%= render "tags/secondary_links" %>
+1 -1
View File
@@ -1,5 +1,5 @@
<div id="c-reports"> <div id="c-reports">
<div id="a-down-voting-post-report"> <div id="a-down-voting-post">
<h1>Down Voting Post Report</h1> <h1>Down Voting Post Report</h1>
<p>This report uses stastistical analysis to determine if a user's uploads are being targeted by an attacker. It will take some time to generate so you will receive a DMail with the results when it finishes.</p> <p>This report uses stastistical analysis to determine if a user's uploads are being targeted by an attacker. It will take some time to generate so you will receive a DMail with the results when it finishes.</p>
@@ -1,5 +1,5 @@
<div id="c-post-versions"> <div id="c-reports">
<div id="a-index"> <div id="a-post-versions-create">
<h1>Post Changes Report</h1> <h1>Post Changes Report</h1>
<p>Only the 1,000 most recent changes are displayed.</p> <p>Only the 1,000 most recent changes are displayed.</p>
+2 -2
View File
@@ -1,5 +1,5 @@
<div id="c-upload-tags-report"> <div id="c-reports">
<div id="a-show"> <div id="a-upload-tags">
<h1>Upload tag changes report for <%= @user.pretty_name %></h1> <h1>Upload tag changes report for <%= @user.pretty_name %></h1>
<%= render "posts/partials/common/inline_blacklist" %> <%= render "posts/partials/common/inline_blacklist" %>
+4
View File
@@ -1,3 +1,5 @@
<div id="c-static">
<div id="a-contact">
<h1>Contact</h1> <h1>Contact</h1>
<h2>Questions &amp; Comments</h2> <h2>Questions &amp; Comments</h2>
@@ -7,3 +9,5 @@
<% content_for(:page_title) do %> <% content_for(:page_title) do %>
Contact - <%= Danbooru.config.app_name %> Contact - <%= Danbooru.config.app_name %>
<% end %> <% end %>
</div>
</div>
@@ -1,3 +1,5 @@
<div id="c-tag-alias-corrections">
<div id="a-show">
<h1>Tag Alias Correction: <%= @correction.antecedent_name %> -&gt; <%= @correction.consequent_name %></h1> <h1>Tag Alias Correction: <%= @correction.antecedent_name %> -&gt; <%= @correction.consequent_name %></h1>
<p>Because tag aliases are cached in memory, they may go out of sync. This action will clear out the cache and fix any lingering posts.</p> <p>Because tag aliases are cached in memory, they may go out of sync. This action will clear out the cache and fix any lingering posts.</p>
@@ -26,3 +28,5 @@
<% content_for(:page_title) do %> <% content_for(:page_title) do %>
Tag Alias Correction - <%= Danbooru.config.app_name %> Tag Alias Correction - <%= Danbooru.config.app_name %>
<% end %> <% end %>
</div>
</div>
+2 -2
View File
@@ -1,5 +1,5 @@
<div id="c-tag-aliases"> <div id="c-tag-alias-requests">
<div id="a-request-new"> <div id="a-new">
<h1>Tag Alias Request</h1> <h1>Tag Alias Request</h1>
<%= error_messages_for :tag_alias_request %> <%= error_messages_for :tag_alias_request %>
+4
View File
@@ -1,3 +1,5 @@
<div id="c-tag-aliases">
<div id="a-show">
<h1>Tag Alias: <%= @tag_alias.antecedent_name %> -&gt; <%= @tag_alias.consequent_name %></h1> <h1>Tag Alias: <%= @tag_alias.antecedent_name %> -&gt; <%= @tag_alias.consequent_name %></h1>
<ul> <ul>
@@ -18,3 +20,5 @@
<% content_for(:page_title) do %> <% content_for(:page_title) do %>
Tag Alias - <%= Danbooru.config.app_name %> Tag Alias - <%= Danbooru.config.app_name %>
<% end %> <% end %>
</div>
</div>
+4
View File
@@ -1,3 +1,5 @@
<div id="c-tag-corrections">
<div id="a-new">
<h1>Fix Tag: <%= @correction.tag.name %></h1> <h1>Fix Tag: <%= @correction.tag.name %></h1>
<% @correction.each_server do |server| %> <% @correction.each_server do |server| %>
@@ -21,3 +23,5 @@
<% content_for(:page_title) do %> <% content_for(:page_title) do %>
Tag Correction - <%= Danbooru.config.app_name %> Tag Correction - <%= Danbooru.config.app_name %>
<% end %> <% end %>
</div>
</div>
@@ -1,5 +1,5 @@
<div id="c-tag-implications"> <div id="c-tag-implication-requests">
<div id="a-request-new"> <div id="a-new">
<h1>Tag Implication Request</h1> <h1>Tag Implication Request</h1>
<%= error_messages_for :tag_implication_request %> <%= error_messages_for :tag_implication_request %>
+2 -2
View File
@@ -1,5 +1,5 @@
<div id="c-tag-aliases"> <div id="c-tag-implications">
<div id="a-new"> <div id="a-edit">
<h1>Edit Tag Implication</h1> <h1>Edit Tag Implication</h1>
<%= error_messages_for :tag_implication %> <%= error_messages_for :tag_implication %>
+4
View File
@@ -1,3 +1,5 @@
<div id="c-tag-implications">
<div id="a-show">
<h1>Tag Implication: <%= @tag_implication.antecedent_name %> -&gt; <%= @tag_implication.consequent_name %></h1> <h1>Tag Implication: <%= @tag_implication.antecedent_name %> -&gt; <%= @tag_implication.consequent_name %></h1>
<ul> <ul>
@@ -12,6 +14,8 @@
<li><strong>Reason</strong> <%= format_text @tag_implication.reason %></li> <li><strong>Reason</strong> <%= format_text @tag_implication.reason %></li>
<% end %> <% end %>
</ul> </ul>
</div>
</div>
<%= render "tag_implications/secondary_links" %> <%= render "tag_implications/secondary_links" %>
+4
View File
@@ -1,3 +1,5 @@
<div id="c-uploads">
<div id="a-show">
<h1>Upload #<%= @upload.id %></h1> <h1>Upload #<%= @upload.id %></h1>
<ul> <ul>
@@ -36,6 +38,8 @@
<%= link_to "Force update", upload_path(@upload, :format => "js"), :remote => true, :method => :put %>. <%= link_to "Force update", upload_path(@upload, :format => "js"), :remote => true, :method => :put %>.
<% end %> <% end %>
</p> </p>
</div>
</div>
<%= render "posts/partials/common/secondary_links" %> <%= render "posts/partials/common/secondary_links" %>
+1 -1
View File
@@ -1,5 +1,5 @@
<div id="c-user-feedbacks"> <div id="c-user-feedbacks">
<div id="a-new"> <div id="a-edit">
<h1>Edit User Feedback</h1> <h1>Edit User Feedback</h1>
<div id="preview"> <div id="preview">
@@ -1,4 +1,5 @@
<div id="c-user-name-change-requests"> <div id="c-user-name-change-requests">
<div id="a-index">
<h1>Name Change Requests</h1> <h1>Name Change Requests</h1>
<table class="striped" width="100%"> <table class="striped" width="100%">
@@ -42,5 +43,6 @@
<%= numbered_paginator(@change_requests) %> <%= numbered_paginator(@change_requests) %>
</div> </div>
</div>
<%= render "secondary_links" %> <%= render "secondary_links" %>
@@ -1,3 +1,5 @@
<div id="c-user-name-change-requests">
<div id="a-new">
<h1>Name Change Request</h1> <h1>Name Change Request</h1>
<p>You can request a name change once per week. Your previous names will still <p>You can request a name change once per week. Your previous names will still
@@ -16,5 +18,7 @@ to search engines.</p>
<%= submit_tag "Submit", :data => { :disable_with => "Submitting..." } %> <%= submit_tag "Submit", :data => { :disable_with => "Submitting..." } %>
</div> </div>
<% end %> <% end %>
</div>
</div>
<%= render "secondary_links" %> <%= render "secondary_links" %>
@@ -1,4 +1,5 @@
<div id="c-user-name-change-requests"> <div id="c-user-name-change-requests">
<div id="a-show">
<h1>Name Change Request</h1> <h1>Name Change Request</h1>
<table class="aligned-vertical"> <table class="aligned-vertical">
@@ -84,5 +85,6 @@
</section> </section>
<% end %> <% end %>
</div> </div>
</div>
<%= render "secondary_links" %> <%= render "secondary_links" %>