internetee/registry

View on GitHub
app/views/admin/domains/form/_pending_update.haml

Summary

Maintainability
Test Coverage
- if (status == DomainStatus::PENDING_UPDATE && f.object.pending_json.present?)
  = link_to(t('.accept_btn'), admin_domain_pending_update_path(f.object.id, f.object.id),
    method: :patch, data: { confirm: t(:are_you_sure) },
    class: 'btn btn-danger btn-xs')

  = link_to(t('.reject_btn'), admin_domain_pending_update_path(f.object.id, f.object.id),
    method: :delete, data: { confirm: t(:are_you_sure) },
    class: 'btn btn-danger btn-xs')