about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-09-20 17:02:15 -0500
committerFire Demon <firedemon@creature.cafe>2020-09-20 17:02:15 -0500
commit583fd2c1fd4323d0b9532fa0f9fe88669ced6ebc (patch)
treebc4ef24d82bc982f5b512c6bf8bf0fdfbec6d1b6 /config
parent69473c4fbec7775cae2badfeb16990aa0e9e85a4 (diff)
[Privacy, UI] Split privacy-related preferences into Privacy options section; add option to disable RSS
Diffstat (limited to 'config')
-rw-r--r--config/locales/en-MP.yml1
-rw-r--r--config/locales/simple_form.en-MP.yml2
-rw-r--r--config/navigation.rb9
-rw-r--r--config/routes.rb1
4 files changed, 9 insertions, 4 deletions
diff --git a/config/locales/en-MP.yml b/config/locales/en-MP.yml
index 6c4d37c9f..481787c00 100644
--- a/config/locales/en-MP.yml
+++ b/config/locales/en-MP.yml
@@ -112,6 +112,7 @@ en-MP:
     advanced_publishing: Advanced publishing options
     filtering: Filtering options
     publishing: Advanced publishing
+    privacy: Privacy options
   remote_interaction:
     favourite:
       proceed: Proceed to admire
diff --git a/config/locales/simple_form.en-MP.yml b/config/locales/simple_form.en-MP.yml
index 6987e4492..6e992f942 100644
--- a/config/locales/simple_form.en-MP.yml
+++ b/config/locales/simple_form.en-MP.yml
@@ -29,6 +29,7 @@ en-MP:
         setting_filter_to_unknown: Do not show replies to unfollowed accounts on your home timeline.  Takes effect for newly-pushed items.
         setting_filter_from_unknown: Do not show boosts from unfollowed accounts on your home timeline.  Takes effect for newly-pushed items.
         setting_manual_publish: This allows you to draft, proofread, and edit your roars before publishing them.  You can publish a roar from its <strong>action menu</strong> (the three dots).
+        setting_rss_disabled: Improves privacy by turning off your account's public RSS feed.
         setting_show_application: The application you use to toot will be displayed in the detailed view of your roars
         setting_skin: Reskins the selected UI flavour
         setting_unpublish_on_delete: When enabled, deleting a published roar will unpublish it then make it local-only. Deleting an unpublished roar will permanently destroy it.
@@ -67,6 +68,7 @@ en-MP:
         setting_boost_every: Automatically queue and space out boosts
         setting_boost_jitter: Add a random delay up to
         setting_boost_random: Boost in random order
+        setting_rss_disabled: Disable RSS feed
         setting_unpublish_delete: Delete after unpublishing
         setting_unpublish_in: Then unpublish after
         setting_unpublish_on_delete: Unpublish on delete
diff --git a/config/navigation.rb b/config/navigation.rb
index 364747adb..538e2c8d3 100644
--- a/config/navigation.rb
+++ b/config/navigation.rb
@@ -12,10 +12,11 @@ SimpleNavigation::Configuration.run do |navigation|
 
     n.item :preferences, safe_join([fa_icon('cog fw'), t('settings.preferences')]), settings_preferences_url, if: -> { current_user.functional? } do |s|
       s.item :appearance, safe_join([fa_icon('desktop fw'), t('settings.appearance')]), settings_preferences_appearance_url
-      s.item :notifications, safe_join([fa_icon('bell fw'), t('settings.notifications')]), settings_preferences_notifications_url
-      s.item :filters, safe_join([fa_icon('filter fw'), t('preferences.filters')]), settings_preferences_filters_url
+      s.item :other, safe_join([fa_icon('cog fw'), t('preferences.posting_defaults')]), settings_preferences_other_url
+      s.item :privacy, safe_join([fa_icon('lock fw'), t('preferences.privacy')]), settings_preferences_privacy_url
       s.item :publishing, safe_join([fa_icon('pencil-square-o fw'), t('preferences.publishing')]), settings_preferences_publishing_url
-      s.item :other, safe_join([fa_icon('cog fw'), t('preferences.other')]), settings_preferences_other_url
+      s.item :notifications, safe_join([fa_icon('bell fw'), t('settings.notifications')]), settings_preferences_notifications_url
+      s.item :filters, safe_join([fa_icon('filter fw'), t('preferences.filters')]), settings_preferences_filters_url, highlights_on: %r{/settings/preferences/filters}
     end
 
     n.item :flavours, safe_join([fa_icon('paint-brush fw'), t('settings.flavours')]), settings_flavours_url do |flavours|
@@ -25,7 +26,7 @@ SimpleNavigation::Configuration.run do |navigation|
     end
 
     n.item :relationships, safe_join([fa_icon('users fw'), t('settings.relationships')]), relationships_url, if: -> { current_user.functional? }
-    n.item :filters, safe_join([fa_icon('filter fw'), t('filters.index.title')]), filters_path, highlights_on: %r{/filters}, if: -> { current_user.functional? }
+    n.item :filters, safe_join([fa_icon('filter fw'), t('filters.index.title')]), filters_path, highlights_on: %r{^/filters}, if: -> { current_user.functional? }
 
     n.item :security, safe_join([fa_icon('lock fw'), t('settings.account')]), edit_user_registration_url do |s|
       s.item :password, safe_join([fa_icon('lock fw'), t('settings.account_settings')]), edit_user_registration_url, highlights_on: %r{/auth/edit|/settings/delete|/settings/migration|/settings/aliases}
diff --git a/config/routes.rb b/config/routes.rb
index 4e36fe074..9a862517a 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -121,6 +121,7 @@ Rails.application.routes.draw do
       resource :other, only: [:show, :update], controller: :other
       resource :filters, only: [:show, :update], controller: :filters
       resource :publishing, only: [:show, :update], controller: :publishing
+      resource :privacy, only: [:show, :update], controller: :privacy
     end
 
     resource :import, only: [:show, :create]