From 60b32fec9464b685e9196b5d2ea0d5641fb6b69b Mon Sep 17 00:00:00 2001 From: DocuSeal Date: Sun, 15 Oct 2023 00:58:03 +0300 Subject: [PATCH] adjust sign up header buttons --- app/views/shared/_navbar.html.erb | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/app/views/shared/_navbar.html.erb b/app/views/shared/_navbar.html.erb index 74db7f2d..589ad6ac 100644 --- a/app/views/shared/_navbar.html.erb +++ b/app/views/shared/_navbar.html.erb @@ -63,18 +63,19 @@ <% else %> -
- <%= link_to new_user_session_path, class: 'font-medium text-lg' do %> - - <%= svg_icon('login', class: 'w-6 h-6') %> - Sign in - +
+ <% if request.path != new_user_session_path %> + <%= link_to new_user_session_path, class: 'font-medium text-lg' do %> + + <%= svg_icon('login', class: 'w-6 h-6') %> + Sign in + + <% end %> <% end %> - <% if Docuseal.multitenant? %> - <%= link_to registration_path, class: 'font-medium text-lg hidden md:inline' do %> + <% if Docuseal.multitenant? && !request.path.in?([registration_path, new_registration_path])%> + <%= link_to registration_path, class: 'btn btn-neutral btn-sm btn-outline' do %> - <%= svg_icon('user_plus', class: 'w-6 h-6') %> - Try for Free + Create free Account <% end %> <% end %>