diff --git a/app/views/domains/index.html.erb b/app/views/domains/index.html.erb index 22beec0..32b28b3 100644 --- a/app/views/domains/index.html.erb +++ b/app/views/domains/index.html.erb @@ -1,61 +1,61 @@ <% if current_user.memberships.empty? %>

Wellcome to WebDNS!

In order to manage domains you have to be a member of a group.

You can either contact an admin to create a new group for you, or ask another user for an invite to an existing group.

<% end %>
- +
<% @domains.group_by(&:group).each do |group, domains| %> <% domains.each do |domain| %> <% end %> <% end %>
Domain Serial Group State Slave DNSSEC Controls
<%= link_to domain.name, domain %> <%= domain.serial %> <%= link_to group.name, group_path(group) %> <%= human_state(domain.state) %> <%= domain.slave? ? domain.master : '-' %> <%= domain.dnssec? ? 'secure' : '-' %> <%= link_to_edit edit_domain_path(domain) %> <% if @optouts.include? domain.id %> <%= link_to_unmute user_domain_unmute_path(current_user, domain), method: :put %> <% else %> <%= link_to_mute user_domain_mute_path(current_user, domain), method: :put %> <% end %> <%= link_to_destroy domain, method: :delete, data: { confirm: 'Are you sure?' } if domain.can_remove? %> <%= link_to_full_destroy full_destroy_domain_path(domain), method: :delete, data: { confirm: 'Are you sure?' } if domain.can_remove? && domain.dnssec? %>

<% if current_user.memberships.any? %> <%= link_to 'Add Domain', new_domain_path, class: 'btn btn-primary' %> <% else %> <%= link_to 'Add Domain', new_domain_path, class: 'btn btn-primary disabled' %> <% end %>

diff --git a/app/views/domains/show.html.erb b/app/views/domains/show.html.erb index e596892..922801b 100644 --- a/app/views/domains/show.html.erb +++ b/app/views/domains/show.html.erb @@ -1,71 +1,71 @@ <% content_for :more_breadcrumbs do %> <% if !@domain.slave? %>
  • <%= link_to_edit edit_domain_path(@domain) %>
  • <% 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 %>