added artist ban capability
This commit is contained in:
@@ -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 %>
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user