<%= link_to "Fetch source data", source_path, id: "fetch-data-manual" %>
<% if @source.present? %>
- Artist
-
<% if @source.artist_name.blank? %>
None
<% else %>
<%= external_link_to @source.profile_url, @source.artist_name, id: "source-info-artist-profile" %>
<% if @source.artists.empty? %>
(<%= link_to "Create new artist", new_artist_path(artist: { source: @source.canonical_url }), id: "source-info-create-new-artist" %>)
<% else %>
(
<% @source.artists.each do |artist| %>
- <%= link_to artist.name, artist_path(artist), class: tag_class(artist.tag) %>
<% end %>
)
<% end %>
<% end %>