mirror of https://github.com/docusealco/docuseal
parent
81f376cf50
commit
1435d55727
@ -1,12 +1,23 @@
|
|||||||
<div class="max-w-6xl mx-auto px-2 py-2">
|
<div class="max-w-6xl mx-auto px-2 py-2 flex items-center justify-between">
|
||||||
<a href="<%= root_path %>" class="text-2xl font-bold">
|
<a href="<%= root_path %>" class="text-2xl font-bold">
|
||||||
<span>DocuSeal</span>
|
<span>DocuSeal</span>
|
||||||
</a>
|
</a>
|
||||||
<% if signed_in? %>
|
<% if signed_in? %>
|
||||||
<div>
|
<div class="space-x-6">
|
||||||
<%= link_to 'Home', root_path, class: 'bg-red-500' %>
|
<%= link_to 'Settings', settings_storage_index_path, class: 'font-medium text-lg' %>
|
||||||
|
<div class="dropdown dropdown-end">
|
||||||
|
<label tabindex="0" class="cursor-pointer bg-neutral-focus text-neutral-content rounded-full w-8 p-2">
|
||||||
|
<span class="text-sm"><%= current_user.initials %></span>
|
||||||
|
</label>
|
||||||
|
<ul tabindex="0" class="dropdown-content p-2 mt-2 shadow-2xl menu bg-white rounded-box whitespace-nowrap">
|
||||||
|
<li class>
|
||||||
|
<%= link_to 'Profile', '', class: 'text-right' %>
|
||||||
|
</li>
|
||||||
|
<li class>
|
||||||
<%= link_to 'Sign out', destroy_user_session_path, data: { turbo_method: :delete } %>
|
<%= link_to 'Sign out', destroy_user_session_path, data: { turbo_method: :delete } %>
|
||||||
<%= current_user.email %>
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in new issue