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 %>
  • <%= link_to_edit edit_domain_path(@domain) %>
  • <% end if admin? %> <% Record.smart_order(@domain.records).each do |record| %> <% if record.classless_delegation? %> <% elsif can_edit?(record) %> - + <% else %> <% end %>
    Records <%= 'Controls' if !@domain.slave? %>
    <%= record.name %> <%= record.ttl %> IN <%= record.type %> <%= record.supports_prio? ? record.prio : '' %> <%= record.content %> <%= link_to_destroy [@domain, record], method: :delete, data: { confirm: 'Are you sure?' } %> <% 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?' } %> <% end %>

    <%= link_to 'Add Record', '#new_record', class: 'btn btn-primary', onclick: '$("#new_record_wrapper").toggleClass("hidden");' %>