* Link other names to artist searches instead of to the new artist page. * Remove the asterisk next to other names indicating the name isn't used as the primary name of another artist. This is almost always the case.
50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
<%# artist %>
|
|
<ul>
|
|
<li><strong>Status</strong> <%= artist.status %></li>
|
|
|
|
<% if artist.other_names.present? %>
|
|
<li>
|
|
<strong>Other Names</strong>
|
|
<% artist.other_names.map do |other_name| %>
|
|
<%= link_to other_name, artists_path(search: { any_name_matches: other_name }), class: "artist-other-name" %>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
<% if artist.group_name.present? %>
|
|
<li>
|
|
<strong>Group</strong>
|
|
<%= link_to artist.group_name, artists_path(search: { group_name: artist.group_name }) %>
|
|
</li>
|
|
<% end %>
|
|
<% if artist.members.present? %>
|
|
<li>
|
|
<strong>Members</strong>
|
|
<% artist.members.each do |member_name| %>
|
|
<%= link_to member_name, artists_path(search: { name: member_name }) %>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
<% if artist.domains.any? %>
|
|
<li><strong>Domains</strong></li>
|
|
<ul class="list-bulleted">
|
|
<% artist.domains.each do |url, count| %>
|
|
<li><%= url %>: <%= count %></li>
|
|
<% end %>
|
|
</ul>
|
|
<% end %>
|
|
<% if artist.urls.present? %>
|
|
<li><strong>URLs</strong></li>
|
|
<ul>
|
|
<% artist.urls.each do |url| %>
|
|
<li>
|
|
<% if url.is_active? %>
|
|
<%= link_to h(url.to_s), h(url) %>
|
|
<% else %>
|
|
<del><%= h(url.url) %></del>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
<% end %>
|
|
</ul>
|