mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Fix rubocop issues and a stray typo spotted along the way
This commit is contained in:
parent
647cb53404
commit
9d7dc59652
4 changed files with 16 additions and 21 deletions
|
@ -72,15 +72,13 @@ class DomainPresenter
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
def remove_registry_lock_btn
|
||||
if domain.locked_by_registrant?
|
||||
view.link_to(view.t('admin.domains.registry_lock_delete.btn'),
|
||||
view.admin_domain_registry_lock_path(domain),
|
||||
method: :delete,
|
||||
data: { confirm: view.t('admin.domains.registry_lock_delete.confirm') },
|
||||
class: 'dropdown-item')
|
||||
end
|
||||
return unless domain.locked_by_registrant?
|
||||
view.link_to(view.t('admin.domains.registry_lock_delete.btn'),
|
||||
view.admin_domain_registry_lock_path(domain),
|
||||
method: :delete,
|
||||
data: { confirm: view.t('admin.domains.registry_lock_delete.confirm') },
|
||||
class: 'dropdown-item')
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue