Fix sign-in/sign-out top bar UI

This commit is contained in:
maddiebaka 2023-10-24 20:57:35 -04:00
parent e73a6b3fc9
commit ed00e69a13

View File

@ -18,7 +18,8 @@
</div>
<div class="ms-auto p-2">
<% if user_signed_in? %>
<p>Welcome <%= current_user.username %></p>
<p style="display: inline;">Welcome <%= current_user.username %></p>
<pre style="display: inline;">|</pre>
<%= link_to "Sign Out", destroy_user_session_path, data: { turbo_method: :delete } %>
<% else %>
<%= link_to "Sign In", new_user_session_path %>