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,26 +16,24 @@ a.pool-category-collection, .pool-category-collection a {
}
}
div#c-pool-elements {
div#a-new {
font-size: 0.8em;
div#add-to-pool-dialog {
font-size: 0.8em;
form {
margin-bottom: 1em;
}
form {
margin-bottom: 1em;
}
li {
margin-left: 1em;
cursor: pointer;
}
li {
margin-left: 1em;
cursor: pointer;
}
h1 {
font-size: $h3_size;
}
.hint {
display: block;
}
h1 {
font-size: $h3_size;
}
.hint {
display: block;
}
}

View File

@@ -1,28 +1,24 @@
<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 %>
<%= form_tag(pool_element_path, :class => "simple_form") do %>
<%= hidden_field_tag "post_id", @post.id %>
<div class="input">
<label>Pool Name</label>
<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>
</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 class="input">
<label>Pool Name</label>
<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>
</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">
<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>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 %>
<%= hidden_field_tag "post_appeal[post_id]", @post_appeal.post_id %>
<%= text_area :post_appeal, :reason, :size => "40x5" %>
<% end %>
</div>
</div>
<%= form_tag(post_appeals_path(:format => :js), :remote => true) do %>
<%= hidden_field_tag "post_appeal[post_id]", @post_appeal.post_id %>
<%= text_area :post_appeal, :reason, :size => "40x5" %>
<% end %>

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">
<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>
<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>
<li>Not anime-related</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>Poor compression: JPEG artifacts</li>
<li>Guro: mutilation, extreme bodily distension</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>Fake translations: Made up translations are banned</li>
</ul>
<ul>
<li>Not anime-related</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>Poor compression: JPEG artifacts</li>
<li>Guro: mutilation, extreme bodily distension</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>Fake translations: Made up translations are banned</li>
</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>
<li>Duplicate: just parent to the original</li>
</ul>
<ul>
<li>Duplicate: just parent to the original</li>
</ul>
<p>Enter a reason:</p>
<p>Enter a reason:</p>
<%= form_tag(post_flags_path(:format => :js), :remote => true) do %>
<%= hidden_field :post_flag, :post_id %>
<%= text_area :post_flag, :reason, :size => "40x5" %>
<% end %>
</div>
</div>
<%= form_tag(post_flags_path(:format => :js), :remote => true) do %>
<%= hidden_field :post_flag, :post_id %>
<%= text_area :post_flag, :reason, :size => "40x5" %>
<% end %>

View File

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