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

@@ -12,7 +12,7 @@
<% end %>
<div>
<%= form.label :email, style: "display: block" %>
<%= form.label :email, style: "display: inline" %> @<%=@domain.domain%>
<%= form.text_field :email %>
</div>

View File

@@ -5,6 +5,6 @@
<br>
<div>
<%= link_to "Show this credential", @credential %> |
<%= link_to "Back to credentials", credentials_path %>
<%#= link_to "Show this credential", @credential %> |
<%#= link_to "Back to credentials", credentials_path %>
</div>

View File

@@ -1,5 +1,3 @@
<p style="color: green"><%= notice %></p>
<h1>Domains</h1>
<div id="domains">

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>