<%= link_to "Fetch source data", source_path, class: "source-data-fetch" %> <%= spinner_icon class: "source-data-loading" %> <% if @source.present? %> <% if @source.artists.present? %> <% @source.artists.each do |artist| %> <% end %> <% else %> <% if @source.artist_name.blank? %> <% else %> <% end %> <% end %>
Artist <%= link_to artist.name, artist_path(artist), class: tag_class(artist.tag) %>
    <% profile_urls(artist).each do |artist_url| %> <%= external_link_to artist_url.url, external_site_icon(artist_url.site_name), title: artist_url.url %> <% end %>
Artist None
Artist <%= external_link_to @source.profile_url, @source.artist_name %> (<%= link_to "Create new artist", new_artist_path(artist: { source: @source.canonical_url }) %>)
Tags <% if @source.tags.empty? %> None <% else %>
    <% @source.tags.each do |tag, href| %>
  • <%= external_link_to href, tag, class: "source-data-tag" %>
  • <% end %>
<% end %>
<% end %>