mirror of https://github.com/docusealco/docuseal
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							80 lines
						
					
					
						
							3.5 KiB
						
					
					
				
			
		
		
	
	
							80 lines
						
					
					
						
							3.5 KiB
						
					
					
				| <div class="max-w-6xl mb-4 mx-auto px-4 md:px-2 py-3 flex items-center justify-between">
 | |
|   <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>
 | |
|     <% 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 %>
 | |
|   </div>
 | |
|   <% if signed_in? %>
 | |
|     <div class="space-x-4 flex items-center">
 | |
|       <% if Docuseal.demo? %>
 | |
|         <%= render 'shared/github_button' %>
 | |
|       <% else %>
 | |
|         <div class="flex items-center justify-center space-x-4 mr-1">
 | |
|           <%= link_to Docuseal.multitenant? ? console_redirect_index_path : Docuseal::CONSOLE_URL, class: 'hidden md:inline-flex items-center font-medium text-lg', data: { prefetch: false } do %>
 | |
|             Console
 | |
|             <span class="badge badge-warning ml-1">New</span>
 | |
|           <% end %>
 | |
|           <span class="hidden md:inline-flex h-3 border-r border-base-content"></span>
 | |
|           <%= link_to 'Settings', settings_profile_index_path, class: 'hidden md:inline-flex font-medium text-lg' %>
 | |
|         </div>
 | |
|       <% end %>
 | |
|       <div class="dropdown dropdown-end">
 | |
|         <label tabindex="0" class="cursor-pointer bg-base-content text-purple-300 rounded-full p-2 w-9 justify-center flex">
 | |
|           <span class="text-sm align-text-top"><%= current_user.initials %></span>
 | |
|         </label>
 | |
|         <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">
 | |
|           <li>
 | |
|             <%= link_to settings_profile_index_path, class: 'flex items-center' do %>
 | |
|               <%= svg_icon('adjustments', class: 'w-5 h-5 stroke-2') %>
 | |
|               <span class="mr-1">Profile</span>
 | |
|             <% end %>
 | |
|           </li>
 | |
|           <% unless Docuseal.demo? %>
 | |
|             <li>
 | |
|               <%= link_to Docuseal.multitenant? ? console_redirect_index_path : Docuseal::CONSOLE_URL, data: { prefetch: false }, class: 'flex items-center' do %>
 | |
|                 <%= svg_icon('terminal', class: 'w-5 h-5 stroke-2') %>
 | |
|                 Console
 | |
|               <% end %>
 | |
|             </li>
 | |
|           <% end %>
 | |
|           <li>
 | |
|             <%= link_to settings_esign_path, class: 'flex items-center' do %>
 | |
|               <%= svg_icon('zoom_check', class: 'w-5 h-5 stroke-2') %>
 | |
|               <span class="mr-1">Verify PDF</span>
 | |
|             <% end %>
 | |
|           </li>
 | |
|           <li>
 | |
|             <%= button_to destroy_user_session_path, method: :delete, data: { turbo: false }, class: 'flex items-center' do %>
 | |
|               <%= svg_icon('logout', class: 'w-5 h-5 stroke-2 mr-2 inline') %>
 | |
|               <span class="mr-1">Sign out</span>
 | |
|             <% end %>
 | |
|           </li>
 | |
|         </ul>
 | |
|       </div>
 | |
|     </div>
 | |
|   <% else %>
 | |
|     <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? %>
 | |
|         <%= link_to registration_path, class: 'font-medium text-lg hidden md:inline' do %>
 | |
|           <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>
 | |
|   <% end %>
 | |
| </div>
 |