Page MenuHomeGRNET

No OneTemporary

File Metadata

Created
Mon, Nov 25, 7:50 PM
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? %>
<div class="jumbotron">
<h2>Wellcome to WebDNS!</h2>
<p>
In order to manage domains you have to be a member of a group.
</p>
<p>
You can either contact an admin to create a new group for you, or ask another user for an invite to an existing group.
</p>
</div>
<% end %>
<div class="datatable-wrapper">
- <table id="domains" class="table table-striped">
+ <table id="domains" class="table table-striped table-bordered">
<thead>
<tr>
<th>Domain</th>
<th>Serial</th>
<th>Group</th>
<th>State</th>
<th>Slave</th>
<th>DNSSEC</th>
<th class="no-order-and-search">Controls</th>
</tr>
</thead>
<tbody>
<% @domains.group_by(&:group).each do |group, domains| %>
<% domains.each do |domain| %>
<tr class="group-<%= group.id =%>">
<td><%= link_to domain.name, domain %></td>
<td><%= domain.serial %></td>
<td><%= link_to group.name, group_path(group) %></td>
<td><%= human_state(domain.state) %></td>
<td><%= domain.slave? ? domain.master : '-' %></td>
<td><%= domain.dnssec? ? 'secure' : '-' %></td>
<td>
<%= 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? %>
</td>
</tr>
<% end %>
<% end %>
</tbody>
</table>
</div>
<p>
<% 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 %>
</p>
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 @@
<script>
$(function() {
window.bulky = new Bulky(
'<%= valid_domain_records_path(@domain) %>',
'<%= bulk_domain_records_path(@domain) %>'
);
});
</script>
<% content_for :more_breadcrumbs do %>
<% if !@domain.slave? %>
<li>
<%= link_to_edit edit_domain_path(@domain) %>
</li>
<% end %>
<% if !@domain.slave? %>
<li>
<%= link_to 'Bulk mode', '#bulk', id: 'js-bulky-activate' %>
</li>
<% end %>
<% end %>
<%= render 'bulk_panel' %>
<%= render 'records/inline_form' %>
<%= render 'bulk_new_records' %>
-<table id="records" class="table table-striped table-hover">
+<table id="records" class="table table-striped table-hover table-bordered">
<thead>
<tr>
<th colspan="6">Records</th>
<th colspan="3"><%= 'Controls' if !@domain.slave? %></th>
</tr>
</thead>
<tbody>
<% Record.smart_order(@domain.records).each do |record| %>
<tr id="record-<%= record.id %>" data-id="<%= record.id %>" class="<%= record.type.downcase %> <%= record.disabled? ? 'warning' : '' %>">
<td><%= editable_record_attr(record, :name) %></td>
<td><%= record.ttl %></td>
<td>IN</td>
<td><%= record.type %></td>
<% if record.supports_prio? %>
<td><%= editable_record_attr(record, :prio) %></td>
<% else %>
<td>&nbsp;</td>
<% end %>
<td class="record_value"><%= editable_record_attr(record, :content) %></td>
<% if record.classless_delegation? %>
<td/>
<td/>
<td><%= link_to_destroy [@domain, record], method: :delete, data: { confirm: 'Are you sure?' } %></td>
<% elsif can_edit?(record) %>
<td>
<% 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 %>
</td>
<td><%= link_to_edit edit_domain_record_path(@domain, record), class: 'js-bulk-hide' %></td>
<td><%= link_to_destroy [@domain, record], method: :delete, data: { confirm: 'Are you sure?', id: record.id }, class: 'js-destroy' %></td>
<% else %>
<td/>
<td/>
<td/>
<% end %>
</tr>
<% end %>
</tbody>
</table>

Event Timeline