about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/locales/devise.no.yml2
-rw-r--r--config/locales/doorkeeper.no.yml2
-rw-r--r--config/locales/no.yml2
-rw-r--r--config/locales/simple_form.no.yml2
-rw-r--r--config/navigation.rb4
-rw-r--r--config/routes.rb2
6 files changed, 7 insertions, 7 deletions
diff --git a/config/locales/devise.no.yml b/config/locales/devise.no.yml
index 7c665f0da..8b650e548 100644
--- a/config/locales/devise.no.yml
+++ b/config/locales/devise.no.yml
@@ -1,5 +1,5 @@
 ---
-no:
+'no':
   devise:
     confirmations:
       confirmed: Epostaddressen din er blitt bekreftet.
diff --git a/config/locales/doorkeeper.no.yml b/config/locales/doorkeeper.no.yml
index 7b51289aa..f149f53e0 100644
--- a/config/locales/doorkeeper.no.yml
+++ b/config/locales/doorkeeper.no.yml
@@ -1,5 +1,5 @@
 ---
-no:
+'no':
   activerecord:
     attributes:
       doorkeeper/application:
diff --git a/config/locales/no.yml b/config/locales/no.yml
index d4514d5e4..b9a752d5a 100644
--- a/config/locales/no.yml
+++ b/config/locales/no.yml
@@ -1,5 +1,5 @@
 ---
-no:
+'no':
   about:
     about_mastodon: Mastodon er et <em>gratis, åpen kildekode</em> sosialt nettverk. Et <em>desentralisert</em> alternativ til kommersielle plattformer. Slik kan det unngå risikoene ved å ha et enkelt selskap med monopol på din kommunikasjon. Velg en tjener du stoler på &mdash; uansett hvilken du velger så kan du interagere med alle andre. Alle kan kjøre sin egen Mastodon og delta sømløst i det sosiale nettverket.
     about_this: Om denne instansen
diff --git a/config/locales/simple_form.no.yml b/config/locales/simple_form.no.yml
index 6829e6a24..7e705b19b 100644
--- a/config/locales/simple_form.no.yml
+++ b/config/locales/simple_form.no.yml
@@ -1,5 +1,5 @@
 ---
-no:
+'no':
   simple_form:
     hints:
       defaults:
diff --git a/config/navigation.rb b/config/navigation.rb
index 77556e5aa..c6b7b9767 100644
--- a/config/navigation.rb
+++ b/config/navigation.rb
@@ -14,11 +14,11 @@ SimpleNavigation::Configuration.run do |navigation|
       settings.item :authorized_apps, safe_join([fa_icon('list fw'), t('settings.authorized_apps')]), oauth_authorized_applications_url
     end
 
-    primary.item :admin, safe_join([fa_icon('cogs fw'), 'Administration']), admin_accounts_url, if: proc { current_user.admin? } do |admin|
+    primary.item :admin, safe_join([fa_icon('cogs fw'), 'Administration']), admin_reports_url, if: proc { current_user.admin? } do |admin|
       admin.item :reports, safe_join([fa_icon('flag fw'), 'Reports']), admin_reports_url, highlights_on: %r{/admin/reports}
       admin.item :accounts, safe_join([fa_icon('users fw'), 'Accounts']), admin_accounts_url, highlights_on: %r{/admin/accounts}
       admin.item :pubsubhubbubs, safe_join([fa_icon('paper-plane-o fw'), 'PubSubHubbub']), admin_pubsubhubbub_index_url
-      admin.item :domain_blocks, safe_join([fa_icon('lock fw'), 'Domain Blocks']), admin_domain_blocks_url
+      admin.item :domain_blocks, safe_join([fa_icon('lock fw'), 'Domain Blocks']), admin_domain_blocks_url, highlights_on: %r{/admin/domain_blocks}
       admin.item :sidekiq, safe_join([fa_icon('diamond fw'), 'Sidekiq']), sidekiq_url
       admin.item :pghero, safe_join([fa_icon('database fw'), 'PgHero']), pghero_url
       admin.item :settings, safe_join([fa_icon('cogs fw'), 'Site Settings']), admin_settings_url
diff --git a/config/routes.rb b/config/routes.rb
index bfca5c734..ca77191f7 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -77,7 +77,7 @@ Rails.application.routes.draw do
 
   namespace :admin do
     resources :pubsubhubbub, only: [:index]
-    resources :domain_blocks, only: [:index, :create]
+    resources :domain_blocks, only: [:index, :new, :create]
     resources :settings, only: [:index, :update]
 
     resources :reports, only: [:index, :show] do