diff --git a/app/controllers/settings_index_controller.rb b/app/controllers/settings_index_controller.rb new file mode 100644 index 00000000..1feed012 --- /dev/null +++ b/app/controllers/settings_index_controller.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +class SettingsIndexController < ApplicationController + skip_authorization_check + + def index; end +end diff --git a/app/views/accounts/show.html.erb b/app/views/accounts/show.html.erb index ab65d57d..31c7f9aa 100644 --- a/app/views/accounts/show.html.erb +++ b/app/views/accounts/show.html.erb @@ -1,6 +1,6 @@
<%= render 'shared/settings_nav' %> -
+

<%= t('account') %>

diff --git a/app/views/email_smtp_settings/index.html.erb b/app/views/email_smtp_settings/index.html.erb index 3407b0ef..90799b9f 100644 --- a/app/views/email_smtp_settings/index.html.erb +++ b/app/views/email_smtp_settings/index.html.erb @@ -1,6 +1,6 @@
<%= render 'shared/settings_nav' %> -
+

Email SMTP

<% value = @encrypted_config.value || {} %> <%= form_for @encrypted_config, url: settings_email_index_path, method: :post, html: { autocomplete: 'off', class: 'space-y-4' } do |f| %> diff --git a/app/views/notifications_settings/index.html.erb b/app/views/notifications_settings/index.html.erb index b163e8e8..269feee4 100644 --- a/app/views/notifications_settings/index.html.erb +++ b/app/views/notifications_settings/index.html.erb @@ -1,6 +1,6 @@
<%= render 'shared/settings_nav' %> -
+

<%= t('email_notifications') %>

diff --git a/app/views/personalization_settings/show.html.erb b/app/views/personalization_settings/show.html.erb index 438da311..64a95490 100644 --- a/app/views/personalization_settings/show.html.erb +++ b/app/views/personalization_settings/show.html.erb @@ -1,6 +1,6 @@
<%= render 'shared/settings_nav' %> -
+

<%= t('email_templates') %>

diff --git a/app/views/profile/index.html.erb b/app/views/profile/index.html.erb index b1880c22..3c726b4b 100644 --- a/app/views/profile/index.html.erb +++ b/app/views/profile/index.html.erb @@ -1,6 +1,6 @@
<%= render 'shared/settings_nav' %> -
+

<%= t('profile') %>

diff --git a/app/views/settings_index/index.html.erb b/app/views/settings_index/index.html.erb new file mode 100644 index 00000000..32973ea7 --- /dev/null +++ b/app/views/settings_index/index.html.erb @@ -0,0 +1,7 @@ + +<%= render 'shared/settings_nav', expanded: true %> diff --git a/app/views/shared/_navbar.html.erb b/app/views/shared/_navbar.html.erb index ba406f71..cd5f4951 100644 --- a/app/views/shared/_navbar.html.erb +++ b/app/views/shared/_navbar.html.erb @@ -28,7 +28,13 @@ <%= current_user.initials %>