Add badges to locked domains

This commit is contained in:
Maciej Szlosarczyk 2018-08-09 13:57:31 +03:00
parent 7ce092dff2
commit faeeb55bc7
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
8 changed files with 80 additions and 7 deletions

View file

@ -14,6 +14,11 @@ class DomainPresenter
html += " #{label}"
end
if domain.locked_by_registrant?
label = view.content_tag(:span, 'registryLock', class: 'label label-danger')
html += " #{label}"
end
html.html_safe
end