fixes #2891: Banned artists still show up in search listings
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<% @artists.each do |artist| %>
|
<% @artists.each do |artist| %>
|
||||||
|
<% if artist.visible? %>
|
||||||
<%= content_tag(:tr, :id => "artist-#{artist.id}") do %>
|
<%= content_tag(:tr, :id => "artist-#{artist.id}") do %>
|
||||||
<td>
|
<td>
|
||||||
<%= link_to h(artist.name), artist_path(artist) %>
|
<%= link_to h(artist.name), artist_path(artist) %>
|
||||||
@@ -22,6 +23,7 @@
|
|||||||
<td><%= artist.status %></td>
|
<td><%= artist.status %></td>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user