Clean up flag/appeal/pool partials html

The new flag and appeal partials both had a duplicate #a-index dom id.
This commit is contained in:
Toks
2013-08-14 13:19:44 -04:00
parent ab4196a0e3
commit 2d39ed5ebc
8 changed files with 79 additions and 81 deletions

View File

@@ -14,7 +14,7 @@
Danbooru.Pool.initialize_add_to_pool_link = function() { Danbooru.Pool.initialize_add_to_pool_link = function() {
$("#add-to-pool-dialog").dialog({autoOpen: false}); $("#add-to-pool-dialog").dialog({autoOpen: false});
$("#c-pool-elements #a-new input[type=text]").autocomplete({ $("#add-to-pool-dialog input[type=text]").autocomplete({
minLength: 1, minLength: 1,
source: function(req, resp) { source: function(req, resp) {
$.ajax({ $.ajax({

View File

@@ -16,8 +16,7 @@ a.pool-category-collection, .pool-category-collection a {
} }
} }
div#c-pool-elements { div#add-to-pool-dialog {
div#a-new {
font-size: 0.8em; font-size: 0.8em;
form { form {
@@ -36,7 +35,6 @@ div#c-pool-elements {
.hint { .hint {
display: block; display: block;
} }
}
} }
div#c-pools { div#c-pools {

View File

@@ -1,6 +1,4 @@
<div id="c-pool-elements"> <%= form_tag(pool_element_path, :class => "simple_form") do %>
<div id="a-new">
<%= form_tag(pool_element_path, :class => "simple_form") do %>
<%= hidden_field_tag "post_id", @post.id %> <%= hidden_field_tag "post_id", @post.id %>
<div class="input"> <div class="input">
@@ -12,9 +10,9 @@
<div class="input"> <div class="input">
<%= submit_tag "Submit" %> <%= submit_tag "Submit" %>
</div> </div>
<% end %> <% end %>
<% if recent_updated_pools.any? %> <% if recent_updated_pools.any? %>
<div> <div>
<h1>Recent Pools</h1> <h1>Recent Pools</h1>
<ul id="recent-pools"> <ul id="recent-pools">
@@ -23,6 +21,4 @@
<% end %> <% end %>
</ul> </ul>
</div> </div>
<% end %> <% end %>
</div>
</div>

View File

@@ -1 +1,5 @@
<%= render "pool_elements/new" %> <div id="c-pool-elements">
<div id="a-new">
<%= render "pool_elements/new" %>
</div>
</div>

View File

@@ -1,12 +1,8 @@
<div id="c-post-appeals"> <p>If this post was automatically deleted, <strong>then it means at least ten janitors all thought it didn't belong on the site</strong>. If you still believe this image was wrongfully deleted, then you can appeal its deletion.</p>
<div id="a-index">
<p>If this post was automatically deleted, <strong>then it means at least ten janitors all thought it didn't belong on the site</strong>. If you still believe this image was wrongfully deleted, then you can appeal its deletion.</p>
<p>All users are limited to one appeal a day. For more details, please read the <%= link_to "wiki", wiki_pages_path(:title => "help:deletion_appeals") %>.</p> <p>All users are limited to one appeal a day. For more details, please read the <%= link_to "wiki", wiki_pages_path(:title => "help:deletion_appeals") %>.</p>
<%= form_tag(post_appeals_path(:format => :js), :remote => true) do %> <%= form_tag(post_appeals_path(:format => :js), :remote => true) do %>
<%= hidden_field_tag "post_appeal[post_id]", @post_appeal.post_id %> <%= hidden_field_tag "post_appeal[post_id]", @post_appeal.post_id %>
<%= text_area :post_appeal, :reason, :size => "40x5" %> <%= text_area :post_appeal, :reason, :size => "40x5" %>
<% end %> <% end %>
</div>
</div>

View File

@@ -1 +1,5 @@
<%= render "post_appeals/new" %> <div id="c-post-appeals">
<div id="a-new">
<%= render "post_appeals/new" %>
</div>
</div>

View File

@@ -1,8 +1,6 @@
<div id="c-post-flags"> <p>If you believe a post does not belong on this site, you can flag for its deletion. As a reminder, the following are some common reasons for flagging a post:</p>
<div id="a-index">
<p>If you believe a post does not belong on this site, you can flag for its deletion. As a reminder, the following are some common reasons for flagging a post:</p>
<ul> <ul>
<li>Not anime-related</li> <li>Not anime-related</li>
<li>Furry: a character has body fur or an animal face</li> <li>Furry: a character has body fur or an animal face</li>
<li>Watermark: text or logo inserted by someone besides the original artist</li> <li>Watermark: text or logo inserted by someone besides the original artist</li>
@@ -11,19 +9,17 @@
<li>Bad proportions: extremely large breasts or penises</li> <li>Bad proportions: extremely large breasts or penises</li>
<li>Manga: Multiple pages of a manga, doujinshi, or comic that don't stand up to individual scrutiny</li> <li>Manga: Multiple pages of a manga, doujinshi, or comic that don't stand up to individual scrutiny</li>
<li>Fake translations: Made up translations are banned</li> <li>Fake translations: Made up translations are banned</li>
</ul> </ul>
<p>The following are <strong>NOT</strong> valid reasons for flagging a post:</p> <p>The following are <strong>NOT</strong> valid reasons for flagging a post:</p>
<ul> <ul>
<li>Duplicate: just parent to the original</li> <li>Duplicate: just parent to the original</li>
</ul> </ul>
<p>Enter a reason:</p> <p>Enter a reason:</p>
<%= form_tag(post_flags_path(:format => :js), :remote => true) do %> <%= form_tag(post_flags_path(:format => :js), :remote => true) do %>
<%= hidden_field :post_flag, :post_id %> <%= hidden_field :post_flag, :post_id %>
<%= text_area :post_flag, :reason, :size => "40x5" %> <%= text_area :post_flag, :reason, :size => "40x5" %>
<% end %> <% end %>
</div>
</div>

View File

@@ -1 +1,5 @@
<%= render "post_flags/new" %> <div id="c-post-flags">
<div id="a-new">
<%= render "post_flags/new" %>
</div>
</div>