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>
<div class="ms-auto p-2"> <div class="ms-auto p-2">
<% if user_signed_in? %> <% 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 } %> <%= link_to "Sign Out", destroy_user_session_path, data: { turbo_method: :delete } %>
<% else %> <% else %>
<%= link_to "Sign In", new_user_session_path %> <%= link_to "Sign In", new_user_session_path %>