@ -40,7 +40,7 @@ SimpleNavigation::Configuration.run do |navigation|
s . item :accounts , safe_join ( [ fa_icon ( 'users fw' ) , t ( 'admin.accounts.title' ) ] ) , admin_accounts_path ( origin : 'local' ) , highlights_on : %r{ /admin/accounts|/admin/pending_accounts|/admin/disputes|/admin/users } , if : - > { current_user . can? ( :manage_users ) }
s . item :invites , safe_join ( [ fa_icon ( 'user-plus fw' ) , t ( 'admin.invites.title' ) ] ) , admin_invites_path , if : - > { current_user . can? ( :manage_invites ) }
s . item :follow_recommendations , safe_join ( [ fa_icon ( 'user-plus fw' ) , t ( 'admin.follow_recommendations.title' ) ] ) , admin_follow_recommendations_path , highlights_on : %r{ /admin/follow_recommendations } , if : - > { current_user . can? ( :manage_taxonomies ) }
s . item :instances , safe_join ( [ fa_icon ( 'cloud fw' ) , t ( 'admin.instances.title' ) ] ) , admin_instances_path ( limited : whitelist _mode? ? nil : '1' ) , highlights_on : %r{ /admin/instances|/admin/domain_blocks|/admin/domain_allows } , if : - > { current_user . can? ( :manage_federation ) }
s . item :instances , safe_join ( [ fa_icon ( 'cloud fw' ) , t ( 'admin.instances.title' ) ] ) , admin_instances_path ( limited : limited_federation _mode? ? nil : '1' ) , highlights_on : %r{ /admin/instances|/admin/domain_blocks|/admin/domain_allows } , if : - > { current_user . can? ( :manage_federation ) }
s . item :email_domain_blocks , safe_join ( [ fa_icon ( 'envelope fw' ) , t ( 'admin.email_domain_blocks.title' ) ] ) , admin_email_domain_blocks_path , highlights_on : %r{ /admin/email_domain_blocks } , if : - > { current_user . can? ( :manage_blocks ) }
s . item :ip_blocks , safe_join ( [ fa_icon ( 'ban fw' ) , t ( 'admin.ip_blocks.title' ) ] ) , admin_ip_blocks_path , highlights_on : %r{ /admin/ip_blocks } , if : - > { current_user . can? ( :manage_blocks ) }
s . item :action_logs , safe_join ( [ fa_icon ( 'bars fw' ) , t ( 'admin.action_logs.title' ) ] ) , admin_action_logs_path , if : - > { current_user . can? ( :view_audit_log ) }
@ -54,7 +54,7 @@ SimpleNavigation::Configuration.run do |navigation|
s . item :announcements , safe_join ( [ fa_icon ( 'bullhorn fw' ) , t ( 'admin.announcements.title' ) ] ) , admin_announcements_path , highlights_on : %r{ /admin/announcements } , if : - > { current_user . can? ( :manage_announcements ) }
s . item :custom_emojis , safe_join ( [ fa_icon ( 'smile-o fw' ) , t ( 'admin.custom_emojis.title' ) ] ) , admin_custom_emojis_path , highlights_on : %r{ /admin/custom_emojis } , if : - > { current_user . can? ( :manage_custom_emojis ) }
s . item :webhooks , safe_join ( [ fa_icon ( 'inbox fw' ) , t ( 'admin.webhooks.title' ) ] ) , admin_webhooks_path , highlights_on : %r{ /admin/webhooks } , if : - > { current_user . can? ( :manage_webhooks ) }
s . item :relays , safe_join ( [ fa_icon ( 'exchange fw' ) , t ( 'admin.relays.title' ) ] ) , admin_relays_path , highlights_on : %r{ /admin/relays } , if : - > { ! whitelist _mode? && current_user . can? ( :manage_federation ) }
s . item :relays , safe_join ( [ fa_icon ( 'exchange fw' ) , t ( 'admin.relays.title' ) ] ) , admin_relays_path , highlights_on : %r{ /admin/relays } , if : - > { ! limited_federation _mode? && current_user . can? ( :manage_federation ) }
end
n . item :sidekiq , safe_join ( [ fa_icon ( 'diamond fw' ) , 'Sidekiq' ] ) , sidekiq_path , link_html : { target : 'sidekiq' } , if : - > { current_user . can? ( :view_devops ) }