% content_for :more_breadcrumbs do %> <% if !@domain.slave? %>
| Records | <%= 'Controls' if !@domain.slave? %> | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| <%= editable_record_attr(record, :name) %> | <%= record.ttl %> | IN | <%= record.type %> | <% if record.supports_prio? %><%= editable_record_attr(record, :prio) %> | <% else %><% end %> | <%= editable_record_attr(record, :content) %> | <% if record.classless_delegation? %><%= link_to_destroy [@domain, record], method: :delete, data: { confirm: 'Are you sure?' } %> | <% elsif can_edit?(record) %><% if record.disabled? %> <%= link_to_enable enable_domain_record_path(@domain, record), method: :put, class: 'js-bulk-hide' %> <% else %> <%= link_to_disable disable_domain_record_path(@domain, record), method: :put, class: 'js-bulk-hide' %> <% end %> | <%= link_to_edit edit_domain_record_path(@domain, record), class: 'js-bulk-hide' %> | <%= link_to_destroy [@domain, record], method: :delete, data: { confirm: 'Are you sure?', id: record.id }, class: 'js-destroy' %> | <% else %><% end %> | ||||