34 lines
1.7 KiB
Plaintext
34 lines
1.7 KiB
Plaintext
<% content_for(:secondary_links) do %>
|
|
<menu>
|
|
<li><%= render "artists/quick_search" %></li>
|
|
<li><%= link_to "Listing", artists_path %></li>
|
|
<li><%= link_to "Banned", banned_artists_path %></li>
|
|
<li><%= link_to "New", new_artist_path %></li>
|
|
<li><%= link_to "Recent changes", artist_versions_path %></li>
|
|
<% if @artist && !@artist.new_record? %>
|
|
<li>|</li>
|
|
<li><%= link_to "Posts (#{Post.fast_count(@artist.name)})", posts_path(:tags => @artist.name) %></li>
|
|
<li><%= link_to "Show", artist_path(@artist) %></li>
|
|
<% if CurrentUser.is_member? %>
|
|
<li id="artist-edit"><%= link_to "Edit", edit_artist_path(@artist) %></li>
|
|
<% end %>
|
|
<li><%= link_to "History", artist_versions_path(:search => {:artist_id => @artist.id}) %></li>
|
|
<% if @artist.deletable_by?(CurrentUser.user) %>
|
|
<% if @artist.is_active? %>
|
|
<li id="artist-delete"><%= link_to "Delete", artist_path(@artist), :method => :delete, :data => {:confirm => "Are you sure you want to delete this artist?"} %></li>
|
|
<% else %>
|
|
<li><%= link_to "Undelete", undelete_artist_path(@artist), :method => :post, :data => {:confirm => "Are you sure you want to undelete this artist?"} %></li>
|
|
<% end %>
|
|
<% end %>
|
|
<% if CurrentUser.is_admin? %>
|
|
<% if @artist.is_banned? %>
|
|
<li><%= link_to "Unban", unban_artist_path(@artist), :method => :put, :data => {:confirm => "Are you sure you want to unban this artist?"} %></li>
|
|
|
|
<% else %>
|
|
<li><%= link_to "Ban", ban_artist_path(@artist), :method => :put, :data => {:confirm => "Are you sure you want to ban this artist?"} %></li>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|
|
</menu>
|
|
<% end %>
|