artists: don't show "Status Active" for undeleted artists.

An "active" artist entry is one that isn't deleted. Saying that every
undeleted artist is "active" confuses people.
This commit is contained in:
evazion
2020-05-29 19:01:42 -05:00
parent 855e31ac90
commit 2113b89f9b
2 changed files with 13 additions and 13 deletions

View File

@@ -287,18 +287,6 @@ class Artist < ApplicationRecord
include BanMethods
extend SearchMethods
def status
if is_banned? && !is_deleted?
"Banned"
elsif is_banned?
"Banned Deleted"
elsif is_deleted?
"Deleted"
else
"Active"
end
end
def self.available_includes
[:members, :urls, :wiki_page, :tag_alias, :tag]
end

View File

@@ -1,6 +1,18 @@
<%# artist %>
<ul>
<li><strong>Status</strong> <%= artist.status %></li>
<% if artist.is_banned? || artist.is_deleted? %>
<li>
<strong>Status</strong>
<% if artist.is_banned? %>
Banned
<% end %>
<% if artist.is_deleted? %>
Deleted
<% end %>
</li>
<% end %>
<% if artist.other_names.present? %>
<li>