diff --git a/app/views/domains/show.html.erb b/app/views/domains/show.html.erb index 922801b..251bc1e 100644 --- a/app/views/domains/show.html.erb +++ b/app/views/domains/show.html.erb @@ -1,71 +1,68 @@ <% content_for :more_breadcrumbs do %> <% if !@domain.slave? %>
  • - <%= link_to_edit edit_domain_path(@domain) %> + <%= link_to_edit edit_domain_path(@domain) %> +
  • +
  • + <%= link_to 'Bulk mode', '#bulk', id: 'js-bulky-activate' %>
  • <% end %> - <% if !@domain.slave? %> -
  • - <%= link_to 'Bulk mode', '#bulk', id: 'js-bulky-activate' %> -
  • - <% end %> - <% end %> <%= render 'bulk_panel' %> <%= render 'records/inline_form' %> <%= render 'bulk_new_records' %> <% Record.smart_order(@domain.records).each do |record| %> <% if record.supports_prio? %> <% else %> <% end %> <% if record.classless_delegation? %> <% elsif can_edit?(record) %> <% else %> <% end %>
    Records <%= 'Controls' if !@domain.slave? %>
    <%= editable_record_attr(record, :name) %> <%= record.ttl %> IN <%= record.type %><%= editable_record_attr(record, :prio) %> <%= editable_record_attr(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, 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' %> <% end %>