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 %>