artists: unify show and show_or_new templates.

This commit is contained in:
evazion
2022-02-08 23:11:56 -06:00
parent 7bbe6e9d22
commit c207f34dbb
4 changed files with 25 additions and 34 deletions

View File

@@ -16,8 +16,9 @@
<% if artist.is_banned? && !policy(artist).can_view_banned? %>
<p>The artist requested removal of this page.</p>
<% elsif artist.new_record? %>
<p>This artist entry does not exist. <%= link_to "Create new artist entry", new_artist_path(artist: { name: artist.name }), rel: "nofollow" %>.</p>
<% else %>
<% if artist.other_names.present? %>
<div>
<% artist.other_names.map do |other_name| %>