You can't sign up or delete your account so those bits have been removed.

This commit is contained in:
Jez Caudle 2024-05-09 13:58:03 +01:00
parent 2594df3086
commit abff880184
3 changed files with 1 additions and 7 deletions

View File

@ -36,8 +36,4 @@
</div> </div>
<% end %> <% end %>
<h3>Cancel my account</h3>
<div>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?", turbo_confirm: "Are you sure?" }, method: :delete %></div>
<%= link_to "Back", :back %> <%= link_to "Back", :back %>

View File

@ -1,5 +1,3 @@
<% if user_signed_in? %><%= link_to current_user.email, edit_user_password_path %><% end %>
<h1>Domains <%= link_to "Add new domain",new_domain_path %> </h1> <h1>Domains <%= link_to "Add new domain",new_domain_path %> </h1>
<div id="domains"> <div id="domains">

View File

@ -25,7 +25,7 @@
</div> </div>
<div id="nav-items" class="hidden flex sm-w-100pc flex-column md-flex md-flex-row md-justify-start items-center"> <div id="nav-items" class="hidden flex sm-w-100pc flex-column md-flex md-flex-row md-justify-start items-center">
<%= link_to "Home", root_path, class: "inline-block fs-s1 mx-3 py-3 gray-darkest no-underline hover-underline" %> <%= link_to "Home", root_path, class: "inline-block fs-s1 mx-3 py-3 gray-darkest no-underline hover-underline" %>
<% if user_signed_in? %><%= button_to "Log out", destroy_user_session_path, method: :delete, class: "button bg-red white focus-red" %><% end %> <% if user_signed_in? %><%= link_to "Edit account", edit_user_registration_path, class: "button" %> <%= button_to "Log out", destroy_user_session_path, method: :delete, class: "button bg-red white focus-red" %><% end %>
</div> </div>
</nav> </nav>