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() {
$("#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,
source: function(req, resp) {
$.ajax({

View File

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

View File

@@ -1,5 +1,3 @@
<div id="c-pool-elements">
<div id="a-new">
<%= form_tag(pool_element_path, :class => "simple_form") do %>
<%= hidden_field_tag "post_id", @post.id %>
@@ -24,5 +22,3 @@
</ul>
</div>
<% end %>
</div>
</div>

View File

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

View File

@@ -1,5 +1,3 @@
<div id="c-post-appeals">
<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>
@@ -8,5 +6,3 @@
<%= hidden_field_tag "post_appeal[post_id]", @post_appeal.post_id %>
<%= text_area :post_appeal, :reason, :size => "40x5" %>
<% end %>
</div>
</div>

View File

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

View File

@@ -1,5 +1,3 @@
<div id="c-post-flags">
<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>
@@ -25,5 +23,3 @@
<%= hidden_field :post_flag, :post_id %>
<%= text_area :post_flag, :reason, :size => "40x5" %>
<% end %>
</div>
</div>

View File

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