diff --git a/app/views/icons/_sparkles.html.erb b/app/views/icons/_sparkles.html.erb new file mode 100644 index 00000000..7981c9fe --- /dev/null +++ b/app/views/icons/_sparkles.html.erb @@ -0,0 +1,3 @@ + + + diff --git a/app/views/shared/_navbar.html.erb b/app/views/shared/_navbar.html.erb index 794997ab..f23bcd0f 100644 --- a/app/views/shared/_navbar.html.erb +++ b/app/views/shared/_navbar.html.erb @@ -50,6 +50,14 @@ <% 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 : :get, html: { class: 'w-full py-1' } do |f| %>