From 8e6639d891ac1cd4de98e29175ee46ab79b97690 Mon Sep 17 00:00:00 2001 From: Alex Turchyn Date: Sat, 19 Aug 2023 23:58:10 +0300 Subject: [PATCH] add a link to the console in navbar --- app/views/icons/_terminal.html.erb | 6 ++++++ app/views/icons/_zoom_check.html.erb | 6 ++++++ app/views/shared/_navbar.html.erb | 29 ++++++++++++++++++++++++---- 3 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 app/views/icons/_terminal.html.erb create mode 100644 app/views/icons/_zoom_check.html.erb diff --git a/app/views/icons/_terminal.html.erb b/app/views/icons/_terminal.html.erb new file mode 100644 index 00000000..98ed16be --- /dev/null +++ b/app/views/icons/_terminal.html.erb @@ -0,0 +1,6 @@ + + + + + + diff --git a/app/views/icons/_zoom_check.html.erb b/app/views/icons/_zoom_check.html.erb new file mode 100644 index 00000000..ac54e504 --- /dev/null +++ b/app/views/icons/_zoom_check.html.erb @@ -0,0 +1,6 @@ + + + + + + diff --git a/app/views/shared/_navbar.html.erb b/app/views/shared/_navbar.html.erb index 26f0b21c..66cbddd9 100644 --- a/app/views/shared/_navbar.html.erb +++ b/app/views/shared/_navbar.html.erb @@ -15,7 +15,14 @@ <% if Docuseal.demo? %> <%= render 'shared/github_button' %> <% else %> - <%= link_to 'Settings', settings_profile_index_path, class: 'hidden md:inline font-medium text-lg mr-2' %> +
+ <%= 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 + New + <% end %> + + <%= link_to 'Settings', settings_profile_index_path, class: 'hidden md:inline-flex font-medium text-lg' %> +
<% end %>