Files
docuseal/app/views/shared/_navbar.html.erb
T

32 lines
1.3 KiB
Plaintext
Raw Normal View History

2023-06-01 01:13:12 +03:00
<div class="max-w-6xl mb-4 mx-auto px-4 md:px-2 py-3 flex items-center justify-between">
2023-06-01 00:46:50 +03:00
<a href="<%= root_path %>" class="text-2xl font-bold items-center flex space-x-2">
<%= render 'shared/logo' %>
2023-05-29 21:20:39 +03:00
<span>DocuSeal</span>
</a>
<% if signed_in? %>
2023-05-29 23:26:17 +03:00
<div class="space-x-6">
2023-06-28 00:22:34 +03:00
<%= link_to 'Settings', settings_profile_index_path, class: 'font-medium text-lg' %>
2023-06-04 21:30:50 +03:00
<div class="dropdown dropdown-end z-50">
2023-06-29 02:04:17 +03:00
<label tabindex="0" class="cursor-pointer bg-base-content text-purple-300 rounded-full p-2 w-9 justify-center flex">
2023-05-30 21:03:47 +03:00
<span class="text-sm align-text-top"><%= current_user.initials %></span>
2023-05-29 23:26:17 +03:00
</label>
2023-06-22 22:50:47 +03:00
<ul tabindex="0" class="dropdown-content p-2 mt-2 shadow menu text-base bg-base-100 rounded-box whitespace-nowrap">
2023-06-04 21:30:50 +03:00
<li>
2023-06-07 12:04:11 +03:00
<%= link_to 'Profile', settings_profile_index_path, class: 'text-right' %>
2023-05-29 23:26:17 +03:00
</li>
2023-06-04 21:30:50 +03:00
<li>
2023-05-29 23:26:17 +03:00
<%= link_to 'Sign out', destroy_user_session_path, data: { turbo_method: :delete } %>
</li>
</ul>
</div>
2023-05-29 21:20:39 +03:00
</div>
2023-06-19 21:44:41 +00:00
<% else %>
<%= link_to new_user_session_path, class: 'font-medium text-lg' do %>
<span class="flex items-center justify-center space-x-1">
<%= svg_icon('login', class: 'w-6 h-6') %>
<span>Sign in</span>
</span>
<% end %>
2023-05-29 21:20:39 +03:00
<% end %>
</div>