From f70c6ebabf140c0a00e78b0bb8f15a73ab4d53e8 Mon Sep 17 00:00:00 2001 From: Sebastian Noe Date: Fri, 8 May 2026 20:38:01 +0200 Subject: [PATCH] Customize navigation for fork: remove upstream references (#2) - Remove Discord, AI assistant, and support email from settings sidebar - Remove Console and Plans menu items from sidebar and navbar dropdown - Grey out SSO menu item (pro feature, not yet implemented) - Rename 'Upgrade' button to 'Go Full Pro' linking to docuseal.com - Point GitHub URL to snoe/docuseal-like-a-pro fork - Replace hardcoded GitHub URLs with Docuseal::GITHUB_URL constant Co-authored-by: Sebastian Noe --- app/views/shared/_github_button.html.erb | 2 +- app/views/shared/_navbar.html.erb | 16 ------------ app/views/shared/_navbar_buttons.html.erb | 4 +-- app/views/shared/_settings_nav.html.erb | 32 ++--------------------- lib/docuseal.rb | 2 +- 5 files changed, 6 insertions(+), 50 deletions(-) diff --git a/app/views/shared/_github_button.html.erb b/app/views/shared/_github_button.html.erb index 5bb4bdde..edacf70d 100644 --- a/app/views/shared/_github_button.html.erb +++ b/app/views/shared/_github_button.html.erb @@ -1,4 +1,4 @@ - + diff --git a/app/views/shared/_navbar.html.erb b/app/views/shared/_navbar.html.erb index c647dc27..a1de9766 100644 --- a/app/views/shared/_navbar.html.erb +++ b/app/views/shared/_navbar.html.erb @@ -34,14 +34,6 @@ <%= t('profile') %> <% end %> - <% if !Docuseal.demo? && can?(:manage, EncryptedConfig) %> -
  • - <%= 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 flex-shrink-0 stroke-2') %> - <%= t('console') %> - <% end %> -
  • - <% end %> <% if can?(:read, EncryptedConfig.new(key: EncryptedConfig::ESIGN_CERTS_KEY, account: current_account)) %>
  • <%= link_to settings_esign_path, class: 'flex items-center' do %> @@ -50,14 +42,6 @@ <% end %>
  • <% end %> - <% if Docuseal.multitenant? || current_user.role == 'superadmin' %> -
  • - <%= link_to Docuseal::CHATGPT_URL, target: 'blank', class: 'flex items-center' do %> - <%= svg_icon('sparkles', class: 'w-5 h-5 flex-shrink-0 stroke-2') %> - <%= t('ask_ai') %> - <% end %> -
  • - <% end %> <% if (can?(:manage, EncryptedConfig) && current_user == true_user) || (current_user != true_user && current_account.testing?) %> <%= form_for '', url: testing_account_path, method: current_account.testing? ? :delete : :post, html: { class: 'w-full py-1' } do |f| %>
    - - <%= capture do %> - - <% end %> - - <%= Docuseal::SUPPORT_EMAIL %> - <% if Docuseal.version.present? && !Docuseal.multitenant? && can?(:manage, EncryptedConfig) %> - + v<%= Docuseal.version %> <% end %> diff --git a/lib/docuseal.rb b/lib/docuseal.rb index 98caaf72..b3720040 100644 --- a/lib/docuseal.rb +++ b/lib/docuseal.rb @@ -7,7 +7,7 @@ module Docuseal ENQUIRIES_URL = "#{PRODUCT_URL}/enquiries".freeze PRODUCT_NAME = 'DocuSeal' DEFAULT_APP_URL = ENV.fetch('APP_URL', 'http://localhost:3000') - GITHUB_URL = 'https://github.com/docusealco/docuseal' + GITHUB_URL = 'https://github.com/snoe/docuseal-like-a-pro' DISCORD_URL = 'https://discord.gg/qygYCDGck9' TWITTER_URL = 'https://twitter.com/docusealco' TWITTER_HANDLE = '@docusealco'