Permalink
Browse files

#5

  • Loading branch information...
Hakaba Hitoyo
Hakaba Hitoyo committed Oct 16, 2017
1 parent f7dad3d commit 1af64d3ac5cbec2284b9449a7ce19b8a7ef9159e
Showing with 4 additions and 2 deletions.
  1. +3 −1 app/controllers/admin/settings_controller.rb
  2. +1 −1 config/navigation.rb
@@ -1,7 +1,9 @@
# frozen_string_literal: true
module Admin
class SettingsController < BaseController
class SettingsController < ApplicationController
layout 'admin'
ADMIN_SETTINGS = %w(
site_contact_username
site_contact_email
View
@@ -5,6 +5,7 @@
primary.item :web, safe_join([fa_icon('chevron-left fw'), t('settings.back')]), root_url
primary.item :settings, safe_join([fa_icon('cog fw'), t('settings.settings')]), settings_profile_url do |settings|
settings.item :settings, safe_join([fa_icon('cogs fw'), t('admin.settings.title')]), edit_admin_settings_url
settings.item :profile, safe_join([fa_icon('user fw'), t('settings.edit_profile')]), settings_profile_url
settings.item :preferences, safe_join([fa_icon('sliders fw'), t('settings.preferences')]), settings_preferences_url
settings.item :password, safe_join([fa_icon('lock fw'), t('auth.change_password')]), edit_user_registration_url, highlights_on: %r{/auth/edit|/settings/delete}
@@ -27,7 +28,6 @@
admin.item :domain_blocks, safe_join([fa_icon('lock fw'), t('admin.domain_blocks.title')]), admin_domain_blocks_url, highlights_on: %r{/admin/domain_blocks}
admin.item :sidekiq, safe_join([fa_icon('diamond fw'), 'Sidekiq']), sidekiq_url, link_html: { target: 'sidekiq' }
admin.item :pghero, safe_join([fa_icon('database fw'), 'PgHero']), pghero_url, link_html: { target: 'pghero' }
admin.item :settings, safe_join([fa_icon('cogs fw'), t('admin.settings.title')]), edit_admin_settings_url
end
primary.item :logout, safe_join([fa_icon('sign-out fw'), t('auth.logout')]), destroy_user_session_url, link_html: { 'data-method' => 'delete' }

0 comments on commit 1af64d3

Please sign in to comment.