This commit is contained in:
r888888888
2014-03-07 16:42:20 -08:00
parent 08b9b2771f
commit 0724f6ca06
5 changed files with 42 additions and 2 deletions

View File

@@ -21,7 +21,12 @@
<% end %>
<% end %>
<% if CurrentUser.is_admin? %>
<li><%= link_to "Ban", ban_artist_path(@artist), :method => :put, :confirm => "Are you sure you want to ban this artist?" %></li>
<% if @artist.is_banned? %>
<li><%= link_to "unban", unban_artist_path(@artist), :method => :put, :confirm => "Are you sure you want to unban this artist?" %></li>
<% else %>
<li><%= link_to "Ban", ban_artist_path(@artist), :method => :put, :confirm => "Are you sure you want to ban this artist?" %></li>
<% end %>
<% end %>
<% end %>
</menu>