Domains#index is now the root page

This commit is contained in:
2023-06-21 17:23:20 +01:00
parent d882c1a521
commit b1009ec4de
8 changed files with 45 additions and 12 deletions

View File

@@ -1,4 +1,3 @@
<p style="color: green"><%= notice %></p>
<h1><%= @domain.domain %></h1>
<div>
@@ -9,7 +8,8 @@
<ul>
<li><%= link_to "Add #{@domain.domain} email address", new_domain_credential_path(@domain) %>
<% @domain.credentials.each do |credential| %>
<li><%= credential.email %></li>
<li><%= credential.email %> <%= link_to "Edit", edit_domain_credential_path(@domain,credential) %> |
<%= button_to "Destroy this credential", [@domain, credential], method: :delete %> </li>
<% end %>
</ul>