Monday, 7 May 2012

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.

No comments:

Post a Comment