Fix page controller and action IDs
- Also fix affected CSS and JS files
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
Danbooru.ForumPost = {};
|
||||
|
||||
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();
|
||||
|
||||
Danbooru.keydown("e", "edit", function(e) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#c-burs {
|
||||
#c-bulk-update-requests {
|
||||
s.approved {
|
||||
color: green;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="bans">
|
||||
<div class="new">
|
||||
<div id="c-bans">
|
||||
<div id="a-edit">
|
||||
<h1>Edit Ban</h1>
|
||||
<%= render "form", :ban => @ban %>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="bans">
|
||||
<div class="show">
|
||||
<div id="c-bans">
|
||||
<div id="a-show">
|
||||
<h1>Show Ban</h1>
|
||||
<ul style="margin-bottom: 1em;">
|
||||
<li><strong>User</strong>: <%= link_to_user(@ban.user) %></li>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="bulk-update-requests">
|
||||
<div class="new">
|
||||
<div id="c-bulk-update-requests">
|
||||
<div id="a-edit">
|
||||
<h1>Edit Bulk Update Request</h1>
|
||||
<%= render "form" %>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="c-burs">
|
||||
<div id="c-bulk-update-requests">
|
||||
<div id="a-index">
|
||||
<h1>Bulk Update Requests</h1>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="bulk-update-requests">
|
||||
<div class="new">
|
||||
<div id="c-bulk-update-requests">
|
||||
<div id="a-new">
|
||||
<h1>New Bulk Update Request</h1>
|
||||
|
||||
<%= render "form" %>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div id="c-explore-posts">
|
||||
<div id="a-popular">
|
||||
<div id="a-viewed">
|
||||
<h1>Most Viewed - <%= @post_set.presenter.date %></h1>
|
||||
|
||||
<%= render "posts/partials/common/inline_blacklist" %>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="c-forum-topics">
|
||||
<div id="c-forum-posts">
|
||||
<div id="a-edit">
|
||||
<h1>Edit Forum Post</h1>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="c-forum-topics">
|
||||
<div id="c-forum-posts">
|
||||
<div id="a-new">
|
||||
<% if @forum_topic %>
|
||||
<h1>Reply to <%= @forum_topic.title %></h1>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="c-forum-topics">
|
||||
<div id="c-forum-posts">
|
||||
<div id="a-search">
|
||||
<h1>Search Forum</h1>
|
||||
<%= form_tag(forum_posts_path, :method => :get, :class => "simple_form") do %>
|
||||
|
||||
@@ -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">
|
||||
<h1>Topic: <%= @forum_post.topic.title %></h1>
|
||||
<%= 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">
|
||||
<h1>Edit Message Filters</h1>
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
<div id="c-maintenance-user-email-changes">
|
||||
<div id="a-new">
|
||||
<h1>Change Email</h1>
|
||||
|
||||
<p>You must confirm your password in order to change your email address.</p>
|
||||
@@ -17,3 +19,5 @@
|
||||
<%= submit_tag "Submit" %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
<div id="c-maintenance-user-email-notifications">
|
||||
<div id="a-show">
|
||||
<h1>Unsubscribe</h1>
|
||||
|
||||
<p>Do you wish to stop receiving all email notifications?</p>
|
||||
@@ -7,3 +9,5 @@
|
||||
<%= hidden_field_tag "user_id", params[:user_id] %>
|
||||
<%= submit_tag "Yes" %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="c-users">
|
||||
<div id="c-maintenance-user-passwords">
|
||||
<div id="a-edit">
|
||||
<h1>Change Password</h1>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div id="c-moderator-post-queues">
|
||||
<div id="a-show">
|
||||
<div id="a-random">
|
||||
<div>
|
||||
<h1>Moderation Queue</h1>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div id="c-news-updates">
|
||||
<div id="a-new">
|
||||
<div id="a-edit">
|
||||
<h1>Edit Update</h1>
|
||||
|
||||
<%= simple_form_for(@news_update) do |f| %>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<div>
|
||||
<div id="c-related-tags">
|
||||
<div id="a-show">
|
||||
<h1>Related tags</h1>
|
||||
<section>
|
||||
<%= form_tag(related_tag_path, :method => :get) do %>
|
||||
@@ -29,6 +30,7 @@
|
||||
</section>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "tags/secondary_links" %>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div id="c-reports">
|
||||
<div id="a-down-voting-post-report">
|
||||
<div id="a-down-voting-post">
|
||||
<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>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div id="c-post-versions">
|
||||
<div id="a-index">
|
||||
<div id="c-reports">
|
||||
<div id="a-post-versions-create">
|
||||
<h1>Post Changes Report</h1>
|
||||
|
||||
<p>Only the 1,000 most recent changes are displayed.</p>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div id="c-upload-tags-report">
|
||||
<div id="a-show">
|
||||
<div id="c-reports">
|
||||
<div id="a-upload-tags">
|
||||
<h1>Upload tag changes report for <%= @user.pretty_name %></h1>
|
||||
|
||||
<%= render "posts/partials/common/inline_blacklist" %>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
<div id="c-static">
|
||||
<div id="a-contact">
|
||||
<h1>Contact</h1>
|
||||
|
||||
<h2>Questions & Comments</h2>
|
||||
@@ -7,3 +9,5 @@
|
||||
<% content_for(:page_title) do %>
|
||||
Contact - <%= Danbooru.config.app_name %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
<div id="c-tag-alias-corrections">
|
||||
<div id="a-show">
|
||||
<h1>Tag Alias Correction: <%= @correction.antecedent_name %> -> <%= @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>
|
||||
@@ -26,3 +28,5 @@
|
||||
<% content_for(:page_title) do %>
|
||||
Tag Alias Correction - <%= Danbooru.config.app_name %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div id="c-tag-aliases">
|
||||
<div id="a-request-new">
|
||||
<div id="c-tag-alias-requests">
|
||||
<div id="a-new">
|
||||
<h1>Tag Alias Request</h1>
|
||||
|
||||
<%= error_messages_for :tag_alias_request %>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
<div id="c-tag-aliases">
|
||||
<div id="a-show">
|
||||
<h1>Tag Alias: <%= @tag_alias.antecedent_name %> -> <%= @tag_alias.consequent_name %></h1>
|
||||
|
||||
<ul>
|
||||
@@ -18,3 +20,5 @@
|
||||
<% content_for(:page_title) do %>
|
||||
Tag Alias - <%= Danbooru.config.app_name %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
<div id="c-tag-corrections">
|
||||
<div id="a-new">
|
||||
<h1>Fix Tag: <%= @correction.tag.name %></h1>
|
||||
|
||||
<% @correction.each_server do |server| %>
|
||||
@@ -21,3 +23,5 @@
|
||||
<% content_for(:page_title) do %>
|
||||
Tag Correction - <%= Danbooru.config.app_name %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div id="c-tag-implications">
|
||||
<div id="a-request-new">
|
||||
<div id="c-tag-implication-requests">
|
||||
<div id="a-new">
|
||||
<h1>Tag Implication Request</h1>
|
||||
|
||||
<%= error_messages_for :tag_implication_request %>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div id="c-tag-aliases">
|
||||
<div id="a-new">
|
||||
<div id="c-tag-implications">
|
||||
<div id="a-edit">
|
||||
<h1>Edit Tag Implication</h1>
|
||||
|
||||
<%= error_messages_for :tag_implication %>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
<div id="c-tag-implications">
|
||||
<div id="a-show">
|
||||
<h1>Tag Implication: <%= @tag_implication.antecedent_name %> -> <%= @tag_implication.consequent_name %></h1>
|
||||
|
||||
<ul>
|
||||
@@ -12,6 +14,8 @@
|
||||
<li><strong>Reason</strong> <%= format_text @tag_implication.reason %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "tag_implications/secondary_links" %>
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
<div id="c-uploads">
|
||||
<div id="a-show">
|
||||
<h1>Upload #<%= @upload.id %></h1>
|
||||
|
||||
<ul>
|
||||
@@ -36,6 +38,8 @@
|
||||
<%= link_to "Force update", upload_path(@upload, :format => "js"), :remote => true, :method => :put %>.
|
||||
<% end %>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "posts/partials/common/secondary_links" %>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div id="c-user-feedbacks">
|
||||
<div id="a-new">
|
||||
<div id="a-edit">
|
||||
<h1>Edit User Feedback</h1>
|
||||
|
||||
<div id="preview">
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<div id="c-user-name-change-requests">
|
||||
<div id="a-index">
|
||||
<h1>Name Change Requests</h1>
|
||||
|
||||
<table class="striped" width="100%">
|
||||
@@ -42,5 +43,6 @@
|
||||
|
||||
<%= numbered_paginator(@change_requests) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "secondary_links" %>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
<div id="c-user-name-change-requests">
|
||||
<div id="a-new">
|
||||
<h1>Name Change Request</h1>
|
||||
|
||||
<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..." } %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "secondary_links" %>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<div id="c-user-name-change-requests">
|
||||
<div id="a-show">
|
||||
<h1>Name Change Request</h1>
|
||||
|
||||
<table class="aligned-vertical">
|
||||
@@ -84,5 +85,6 @@
|
||||
</section>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "secondary_links" %>
|
||||
|
||||
Reference in New Issue
Block a user