Remove the list of most-used source domains from artist summaries. This took up a lot of space and usually wasn't very useful. It was also slow. We had to calculate this on every artist tag search so we could display it in the Artist tab, even though usually the user didn't open the tab.
42 lines
1.1 KiB
Plaintext
42 lines
1.1 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.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>
|