fixes #1350, better db:seed script

This commit is contained in:
r888888888
2013-04-16 20:23:02 -07:00
parent 9ce04fb5df
commit 2dfa616f33
9 changed files with 91 additions and 37 deletions

View File

@@ -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>

View File

@@ -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

View File

@@ -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? %>