Showing posts with label customisation. Show all posts
Showing posts with label customisation. Show all posts

Monday, 7 May 2012

How to hide filters in the active admin view

Hi,

I am working with active admin customisation for one of my project. In that I need to hide the filters in the list views.

This can be done with simple configuration as shown below

ActiveAdmin.register Product do

config.clear_sidebar_sections!

end

The above configuration will make filters not to display in the list view.

Thank You,
Uma Mahesh

How to hide API & Downloads links in the active admin

Hi,

I am working with active admin customisation for one of my project. In that I need to hide the API & Downloads links in the list views.

I have searched for it making it configurable at controller level. But I came to see there is no such provision.

By goggling I found solution as this can done through css path. I.e making the css class for that text to be hide.

Here is the style that need to be added in the active admin css style sheet.

In app/assets/stylesheets/active_admin.css.scss

.index #active_admin_content #index_footer {
  color: white;
  a {
    display: none;
  }
}

This will make the download links hide in the view.

Thank You,
Uma Mahesh.