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