Added users support
This commit is contained in:
@@ -18,6 +18,15 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<% if logged_in? %>
|
||||
<div class="fixed top-4 right-4 text-sm text-gray-600 bg-white px-3 py-1 rounded-md shadow-sm border">
|
||||
<span class="lowercase"><%= current_user.username %></span>
|
||||
<span class="mx-2">|</span>
|
||||
<%= link_to t('sessions.logout_button'), logout_path, method: :delete,
|
||||
class: "text-blue-600 hover:text-blue-800" %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<main class="container mx-auto mt-28 px-5 flex">
|
||||
<%= yield %>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user