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? %>
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.
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? %>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 %> |