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

59 lines
2.4 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-07-04 23:05:22 +03:00
<div class="flex items-center space-x-4">
<a href="<%= root_path %>" class="text-2xl font-bold items-center flex space-x-2">
<%= render 'shared/logo' %>
<span>DocuSeal</span>
</a>
2023-07-12 01:24:25 +03:00
<% unless Docuseal.demo? %>
<a href="<%= Docuseal::GITHUB_URL %>" target="_blank" class="inline">
<img alt="GitHub Repo stars" src="https://www.docuseal.co/github-badge.svg" style="height: 22px">
</a>
<% end %>
2023-07-04 23:05:22 +03:00
</div>
2023-05-29 21:20:39 +03:00
<% if signed_in? %>
2023-07-12 01:24:25 +03:00
<div class="space-x-4 flex items-center">
<% if Docuseal.demo? %>
<%= render 'shared/github_button' %>
<% else %>
<%= link_to 'Settings', settings_profile_index_path, class: 'hidden md:inline font-medium text-lg mr-2' %>
<% end %>
2023-07-02 00:14:26 +03:00
<div class="dropdown dropdown-end">
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-07-02 13:30:11 +00:00
<ul tabindex="0" class="z-10 dropdown-content p-2 mt-2 shadow menu text-base bg-base-100 rounded-box whitespace-nowrap text-right">
2023-06-04 21:30:50 +03:00
<li>
2023-07-02 13:30:11 +00:00
<%= link_to settings_profile_index_path do %>
<%= svg_icon('adjustments', class: 'w-5 h-5 stroke-2') %>
<span class="mr-1">Profile</span>
<% end %>
2023-05-29 23:26:17 +03:00
</li>
2023-06-04 21:30:50 +03:00
<li>
2023-07-14 22:33:42 +03:00
<%= button_to destroy_user_session_path, method: :delete, data: { turbo: false } do %>
<%= svg_icon('logout', class: 'w-5 h-5 stroke-2 inline') %>
2023-07-02 13:30:11 +00:00
<span class="mr-1">Sign out</span>
<% end %>
2023-05-29 23:26:17 +03:00
</li>
</ul>
</div>
2023-05-29 21:20:39 +03:00
</div>
2023-06-19 21:44:41 +00:00
<% else %>
2023-07-16 16:15:37 +03:00
<div class="flex space-x-6">
<%= 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 %>
<% if Docuseal.multitenant? %>
2023-07-17 22:54:54 +03:00
<%= link_to registration_path, class: 'font-medium text-lg hidden md:inline' do %>
2023-07-16 16:15:37 +03:00
<span class="flex items-center justify-center space-x-1">
<%= svg_icon('user_plus', class: 'w-6 h-6') %>
<span>Try for Free</span>
</span>
<% end %>
<% end %>
</div>
2023-05-29 21:20:39 +03:00
<% end %>
</div>