simplify nav

This commit is contained in:
Pete Matsyburka
2025-07-11 21:19:03 +03:00
parent 1ae635963c
commit bd3d643318
6 changed files with 23 additions and 8 deletions
+5 -2
View File
@@ -1,3 +1,6 @@
<a href="<%= Docuseal::GITHUB_URL %>" target="_blank" class="inline">
<img alt="GitHub Repo stars" src="https://www.docuseal.com/github-badge.svg" style="height: 22px">
<a target="_blank" href="https://github.com/docusealco/docuseal" rel="noopener noreferrer nofollow" class="relative flex items-center rounded-full px-2 py-0.5 text-xs leading-4 mt-1 text-base-content border border-base-300">
<span class="flex items-center justify-between space-x-0.5 font-extrabold">
<%= svg_icon('start', class: 'h-3 w-3') %>
<span>9k</span>
</span>
</a>
+1 -1
View File
@@ -5,7 +5,7 @@
<%= render 'shared/title' %>
</a>
<span class="hidden sm:inline">
<%= render 'shared/github' %>
<%= render 'shared/github' if request.path.starts_with?('/settings') %>
</span>
</div>
<% if signed_in? %>
+6 -4
View File
@@ -1,8 +1,10 @@
<%= link_to Docuseal.multitenant? ? console_redirect_index_path(redir: "#{Docuseal::CONSOLE_URL}/plans") : "#{Docuseal::CLOUD_URL}/sign_up?#{{ redir: "#{Docuseal::CONSOLE_URL}/on_premises" }.to_query}", class: 'hidden md:inline-flex btn btn-warning btn-sm', data: { prefetch: false } do %>
<%= t('upgrade') %>
<% if request.path.starts_with?('/settings') %>
<%= link_to "#{Docuseal::CLOUD_URL}/sign_up?#{{ redir: "#{Docuseal::CONSOLE_URL}/on_premises" }.to_query}", class: 'hidden md:inline-flex btn btn-warning btn-sm', data: { prefetch: false } do %>
<%= t('upgrade') %>
<% end %>
<% end %>
<% if signed_in? && current_user != true_user %>
<span class="hidden md:inline-flex h-3 border-r border-base-content"></span>
<%= render 'shared/test_alert' %>
<% elsif request.path.starts_with?('/settings') %>
<span class="hidden md:inline-flex h-3 border-r border-base-content"></span>
<% end %>
<span class="hidden md:inline-flex h-3 border-r border-base-content"></span>
+1 -1
View File
@@ -66,7 +66,7 @@
<li>
<%= link_to Docuseal.multitenant? ? console_redirect_index_path(redir: "#{Docuseal::CONSOLE_URL}/plans") : "#{Docuseal::CLOUD_URL}/sign_up?#{{ redir: "#{Docuseal::CONSOLE_URL}/on_premises" }.to_query}", class: 'text-base hover:bg-base-300', data: { prefetch: false } do %>
<%= t('plans') %>
<span class="badge badge-warning"><%= t('new') %></span>
<span class="badge badge-warning"><%= t('pro') %></span>
<% end %>
</li>
<% end %>