fixes #1350, better db:seed script
This commit is contained in:
@@ -34,7 +34,11 @@
|
||||
Flagged
|
||||
<% end %>
|
||||
|
||||
<% if !post.is_pending? && !post.is_deleted? %>
|
||||
<% if post.is_banned? %>
|
||||
Banned
|
||||
<% end %>
|
||||
|
||||
<% if !post.is_pending? && !post.is_deleted? && !post.is_banned? %>
|
||||
Active
|
||||
<% end %>
|
||||
</li>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<% if post.is_deleted? && post.flags.empty? %>
|
||||
<% if (post.is_banned? || post.is_deleted?) && post.flags.empty? %>
|
||||
<div class="ui-corner-all ui-state-highlight notice notice-deleted">
|
||||
<% if post.is_banned? %>
|
||||
This post was deleted because it was requested by the artist
|
||||
|
||||
@@ -35,9 +35,9 @@
|
||||
<% end %>
|
||||
|
||||
<% if post.is_banned? %>
|
||||
<li><%= link_to "Unban", unban_post_path(post), :method => :post %></li>
|
||||
<li><%= link_to "Unban", unban_moderator_post_post_path(post), :method => :post %></li>
|
||||
<% else %>
|
||||
<li><%= link_to "Ban", ban_post_path(post), :method => :post %></li>
|
||||
<li><%= link_to "Ban", confirm_ban_moderator_post_post_path(post) %></li>
|
||||
<% end %>
|
||||
|
||||
<% if CurrentUser.is_admin? %>
|
||||
|
||||
Reference in New Issue
Block a user