Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F462646
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, May 18, 11:14 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Tue, May 20, 11:14 PM (15 h, 48 m)
Engine
blob
Format
Raw Data
Handle
220654
Attached To
rWEBDNS WebDNS (edet4)
View Options
diff --git a/app/views/records/search.html.erb b/app/views/records/search.html.erb
new file mode 100644
index 0000000..8f21b18
--- /dev/null
+++ b/app/views/records/search.html.erb
@@ -0,0 +1,39 @@
+<table class="table table-striped table-hover">
+ <thead>
+ <tr>
+ <th colspan="6">Records</th>
+ </tr>
+ </thead>
+
+ <tbody>
+ <% @records.each do |record| %>
+ <tr id="record-<%= record.id %>" class="<%= record.disabled? ? 'warning' : '' %>">
+ <td><%= link_to record.name, domain_path(record.domain, anchor: "hl-record-#{record.id}") %></td>
+ <td><%= record.ttl %></td>
+ <td>IN</td>
+ <td><%= record.type %></td>
+ <td><%= record.supports_prio? ? record.prio : '' %></td>
+ <td><%= record.content %></td>
+ <% if record.classless_delegation? %>
+ <td/>
+ <td/>
+ <td><%= link_to_destroy [record.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(record.domain, record), method: :put %>
+ <% else %>
+ <%= link_to_disable disable_domain_record_path(record.domain, record), method: :put %>
+ <% end %>
+ </td>
+ <td><%= link_to_edit edit_domain_record_path(record.domain, record) %></td>
+ <td><%= link_to_destroy [record.domain, record], method: :delete, data: { confirm: 'Are you sure?' } %></td>
+ <% else %>
+ <td/>
+ <td/>
+ <td/>
+ <% end %>
+ </tr>
+ <% end %>
+ </tbody>
+</table>
Event Timeline
Log In to Comment