diff --git a/app/views/domains/show.html.erb b/app/views/domains/show.html.erb index fad58c2..e6819a3 100644 --- a/app/views/domains/show.html.erb +++ b/app/views/domains/show.html.erb @@ -1,54 +1,54 @@ <% content_for :more_breadcrumbs do %>
Records | <%= 'Controls' if !@domain.slave? %> | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<%= record.name %> | <%= record.ttl %> | IN | <%= record.type %> | <%= record.supports_prio? ? record.prio : '' %> | <%= 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 %> <% else %> <%= link_to_disable disable_domain_record_path(@domain, record), method: :put %> <% end %> | -<%= link_to_edit edit_domain_record_path(@domain, record) if can_edit?(record) %> | +<%= link_to_edit edit_domain_record_path(@domain, record) %> | <%= link_to_destroy [@domain, record], method: :delete, data: { confirm: 'Are you sure?' } %> | <% else %><% end %> |
<%= link_to 'Add Record', '#new_record', class: 'btn btn-primary', onclick: '$("#new_record_wrapper").toggleClass("hidden");' %>