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 @@ +
Records | +||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<%= link_to record.name, domain_path(record.domain, anchor: "hl-record-#{record.id}") %> | +<%= record.ttl %> | +IN | +<%= record.type %> | +<%= record.supports_prio? ? record.prio : '' %> | +<%= record.content %> | + <% if record.classless_delegation? %> ++ | + | <%= link_to_destroy [record.domain, record], method: :delete, data: { confirm: 'Are you sure?' } %> | + <% elsif can_edit?(record) %> ++ <% 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 %> + | +<%= link_to_edit edit_domain_record_path(record.domain, record) %> | +<%= link_to_destroy [record.domain, record], method: :delete, data: { confirm: 'Are you sure?' } %> | + <% else %> ++ | + | + <% end %> + |