tweaks
This commit is contained in:
@@ -1 +1 @@
|
||||
Danbooru.notice("Pool deleted");
|
||||
location.reload();
|
||||
|
||||
1
app/views/pools/undelete.js.erb
Normal file
1
app/views/pools/undelete.js.erb
Normal file
@@ -0,0 +1 @@
|
||||
location.reload();
|
||||
@@ -62,7 +62,7 @@
|
||||
<%= f.label :tag_string, "Tags" %>
|
||||
<%= f.text_area :tag_string , :size => "50x3" %>
|
||||
</div>
|
||||
|
||||
|
||||
<%= button_tag "Related tags", :id => "related-tags-button" %>
|
||||
<%= button_tag "Artists", :id => "related-artists-button" %>
|
||||
<%= button_tag "Characters", :id => "related-characters-button" %>
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
<% if post.has_large? && CurrentUser.default_image_size == "large" %>
|
||||
<p id="image-resize-notice">Resized to <%= number_to_percentage post.resize_percentage, :precision => 0 %> of original (<%= link_to "view original", post.file_url, :id => "image-resize-link" %>)</p>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<li><%= link_to "Find similar", "http://danbooru.iqdb.org/db-search.php?url=#{post.preview_file_url}" %></li>
|
||||
|
||||
<% unless post.is_status_locked? %>
|
||||
<% if !post.is_deleted? %>
|
||||
<% if !post.is_deleted? && !post.is_pending? %>
|
||||
<li><%= link_to "Flag", new_post_flag_path(:post_id => post.id), :id => "flag" %></li>
|
||||
<% end %>
|
||||
|
||||
@@ -35,6 +35,6 @@
|
||||
<% end %>
|
||||
|
||||
<% if CurrentUser.is_admin? %>
|
||||
<li><%= link_to "Annihilate", annihilate_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "annihilate", :confirm => "This will permanently delete this post (meaning the file will be deleted). Are you sure you want to annihilate this post?" %></li>
|
||||
<li><%= link_to "Permanent delete", annihilate_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "annihilate", :confirm => "This will permanently delete this post (meaning the file will be deleted). Are you sure you want to delete this post?" %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
Reference in New Issue
Block a user