Show label in UI if a domain is discarded

#792
This commit is contained in:
Artur Beljajev 2018-04-03 15:12:43 +03:00
parent 1dcf7bcd62
commit f269796382
4 changed files with 31 additions and 2 deletions

View file

@ -6,6 +6,17 @@ class DomainPresenter
@view = view
end
def name_with_status
html = domain.name
if domain.discarded?
label = view.content_tag(:span, 'deleteCandidate', class: 'label label-warning')
html += " #{label}"
end
html.html_safe
end
def expire_time
view.l(domain.expire_time)
end