| <%= link_to record.name, domain_path(record.domain, anchor: "hl-record-#{record.id}") %> |
<%= record.ttl %> |
IN |
<%= record.type %> |
<%= record.supports_prio? ? record.prio : '' %> |
<%= record.content %> |
<% if record.classless_delegation? %>
|
|
<%= link_to_destroy [record.domain, record], method: :delete, data: { confirm: 'Are you sure?' } %> |
<% elsif can_edit?(record) %>
<% if record.disabled? %>
<%= link_to_enable enable_domain_record_path(record.domain, record), method: :put %>
<% else %>
<%= link_to_disable disable_domain_record_path(record.domain, record), method: :put %>
<% end %>
|
<%= link_to_edit edit_domain_record_path(record.domain, record) %> |
<%= link_to_destroy [record.domain, record], method: :delete, data: { confirm: 'Are you sure?' } %> |
<% else %>
|
|
|
<% end %>
<% end %>