<%# artist %>
<% if artist.is_banned? %> BANNED <% end %> <% if artist.is_deleted? %> DELETED <% end %> <%= link_to artist.pretty_name, posts_path(tags: artist.name), class: [tag_class(artist.tag), "heading text-xl"] %> <%= artist.tag&.post_count %>
<% if artist.is_banned? && !policy(artist).can_view_banned? %>

The artist requested removal of this page.

<% elsif artist.new_record? %>

This artist entry does not exist. <%= link_to "Create new artist entry", new_artist_path(artist: { name: artist.name }), rel: "nofollow" %>.

<% else %> <% if artist.other_names.present? %>
<% artist.other_names.map do |other_name| %> <%= link_to other_name, artists_path(search: { any_name_matches: other_name }), class: "artist-other-name" %> <% end %>
<% end %> <% if artist.group_name.present? %>
Group <%= link_to artist.group_name, artists_path(search: { group_name: artist.group_name }), class: "artist-other-name" %>
<% end %> <% if artist.members.present? %>
Members <% artist.members.each do |member| %> <%= link_to member.name, artists_path(search: { name: member.name }), class: "artist-other-name" %> <% end %>
<% end %> <% if artist.wiki_page.present? && !artist.wiki_page.is_deleted? %>
<%= format_text(artist.wiki_page.body, disable_mentions: true) %>
<% end %> <% if artist.urls.present? %>

URLs

<% end %>

<% if artist.wiki_page.present? %> <%= link_to "Edit wiki", edit_wiki_page_path(artist.wiki_page), id: "view-wiki-link" %> | <% end %> <%= link_to "Edit artist", edit_artist_path(artist), id: "view-artist-link" %>

<%= render "tag_relationships/alias_and_implication_list", tag: artist.tag %> <% end %>