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,26 +16,24 @@ 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 {
margin-bottom: 1em; margin-bottom: 1em;
} }
li { li {
margin-left: 1em; margin-left: 1em;
cursor: pointer; cursor: pointer;
} }
h1 { h1 {
font-size: $h3_size; font-size: $h3_size;
} }
.hint { .hint {
display: block; display: block;
}
} }
} }

View File

@@ -1,28 +1,24 @@
<div id="c-pool-elements"> <%= form_tag(pool_element_path, :class => "simple_form") do %>
<div id="a-new"> <%= hidden_field_tag "post_id", @post.id %>
<%= form_tag(pool_element_path, :class => "simple_form") do %>
<%= hidden_field_tag "post_id", @post.id %>
<div class="input"> <div class="input">
<label>Pool Name</label> <label>Pool Name</label>
<span id="pool-name-container"><%= text_field_tag "pool_name", "", :size => 20 %></span> <span id="pool-name-container"><%= text_field_tag "pool_name", "", :size => 20 %></span>
<span id="pool-name-hint" class="hint">Search for a pool containing (<%= link_to "see full list", all_select_pool_element_path, :remote => true %>)</span> <span id="pool-name-hint" class="hint">Search for a pool containing (<%= link_to "see full list", all_select_pool_element_path, :remote => true %>)</span>
</div>
<div class="input">
<%= submit_tag "Submit" %>
</div>
<% end %>
<% if recent_updated_pools.any? %>
<div>
<h1>Recent Pools</h1>
<ul id="recent-pools">
<% recent_updated_pools.each do |pool| %>
<li><%= pool.pretty_name %></li>
<% end %>
</ul>
</div>
<% end %>
</div> </div>
</div>
<div class="input">
<%= submit_tag "Submit" %>
</div>
<% end %>
<% if recent_updated_pools.any? %>
<div>
<h1>Recent Pools</h1>
<ul id="recent-pools">
<% recent_updated_pools.each do |pool| %>
<li><%= pool.pretty_name %></li>
<% end %>
</ul>
</div>
<% end %>

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,29 +1,25 @@
<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>
<li>Poor compression: JPEG artifacts</li> <li>Poor compression: JPEG artifacts</li>
<li>Guro: mutilation, extreme bodily distension</li> <li>Guro: mutilation, extreme bodily distension</li>
<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>