From 176510909a62f82dc818366571b5973be61162c7 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Tue, 21 Feb 2017 11:34:01 -0800 Subject: [PATCH] fixes #2891: Banned artists still show up in search listings --- app/views/artists/index.html.erb | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/app/views/artists/index.html.erb b/app/views/artists/index.html.erb index 908d50184..a84291dc2 100644 --- a/app/views/artists/index.html.erb +++ b/app/views/artists/index.html.erb @@ -11,15 +11,17 @@ <% @artists.each do |artist| %> - <%= content_tag(:tr, :id => "artist-#{artist.id}") do %> - - <%= link_to h(artist.name), artist_path(artist) %> - <% if !artist.group_name.blank? %> - (group: <%= link_to(artist.group_name, artist_path(artist)) %>) - <% end %> - - <%= artist.other_names %> - <%= artist.status %> + <% if artist.visible? %> + <%= content_tag(:tr, :id => "artist-#{artist.id}") do %> + + <%= link_to h(artist.name), artist_path(artist) %> + <% if !artist.group_name.blank? %> + (group: <%= link_to(artist.group_name, artist_path(artist)) %>) + <% end %> + + <%= artist.other_names %> + <%= artist.status %> + <% end %> <% end %> <% end %>