added artist ban capability

This commit is contained in:
albert
2011-10-16 22:28:56 -04:00
parent 05e50ea591
commit e507f3dfd1
5 changed files with 61 additions and 24 deletions

View File

@@ -3,6 +3,8 @@
<%= f.input :other_names, :hint => "Separate with commas", :as => :text %>
<%= f.input :group_name %>
<%= f.input :url_string, :label => "URLs", :as => :text, :size => "10x5" %>
<%= f.input :is_active %>
<%= f.input :is_banned %>
<%= f.input :notes, :as => :text %>
<%= f.button :submit %>
<% end %>

View File

@@ -20,17 +20,7 @@
<% end %>
</td>
<td><%= artist.other_names %></td>
<td>
<% if artist.is_active? %>
Active
<% else %>
Deleted
<% end %>
<% if artist.is_banned? %>
Banned
<% end %>
</td>
<td><%= artist.status %></td>
<% end %>
<% end %>
</tbody>

View File

@@ -13,15 +13,7 @@
<tbody>
<tr>
<th width="15%">Status</th>
<td width="85%">
<% if @artist.is_banned? %>
Banned
<% elsif @artist.is_active? %>
Active
<% else %>
Inactive
<% end %>
</td>
<td width="85%"><%= @artist.status %></td>
</tr>
<% if @artist.has_tag_alias? %>
<tr>