From c31f02aa4cf2fc7b1ae81db6f0d869b9bfa59bd1 Mon Sep 17 00:00:00 2001 From: HisShadow Date: Tue, 7 Mar 2023 19:55:01 +0300 Subject: [PATCH] remove activeadmin remains --- app/helpers/active_admin/admin_helper.rb | 10 ---------- app/views/layouts/menu/_new_top.html.slim | 10 +++++----- config/routes.rb | 2 +- 3 files changed, 6 insertions(+), 16 deletions(-) delete mode 100644 app/helpers/active_admin/admin_helper.rb diff --git a/app/helpers/active_admin/admin_helper.rb b/app/helpers/active_admin/admin_helper.rb deleted file mode 100644 index 4cc19f59c..000000000 --- a/app/helpers/active_admin/admin_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -module ActiveAdmin::AdminHelper - - include ActiveAdmin::Views - - def admin_polymorphic_path(resource) - self.send("admin_#{resource.class.to_s.underscore}_path", resource) - end - -end - diff --git a/app/views/layouts/menu/_new_top.html.slim b/app/views/layouts/menu/_new_top.html.slim index a418529ac..3e99d68db 100644 --- a/app/views/layouts/menu/_new_top.html.slim +++ b/app/views/layouts/menu/_new_top.html.slim @@ -19,11 +19,11 @@ li.sidebar-list a href="https://abf.openmandriva.org/massbuild" | Mass build status span.menu-icon.fa.fa-circle-o -- if current_user.try(:admin?) - li.sidebar-list - a href=admin_users_path - = t('admins_menu_header') - span.menu-icon.fa.fa-lock +/ - if current_user.try(:admin?) +/ li.sidebar-list +/ a href=admin_users_path +/ = t('admins_menu_header') +/ span.menu-icon.fa.fa-lock - if current_user li.sidebar-title span diff --git a/config/routes.rb b/config/routes.rb index a9ac2ed84..ec726204b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -4,7 +4,7 @@ require 'sidekiq-scheduler/web' Rails.application.routes.draw do # ActiveAdmin routes. - ActiveAdmin.routes(self) +# ActiveAdmin.routes(self) # namespace :admin do # constraints Rosa::Constraints::AdminAccess do