darklow / django-suit

Modern theme for Django admin interface
http://djangosuit.com/
Other
2.33k stars 705 forks source link

Proposal for new setting #170

Open Neamar opened 11 years ago

Neamar commented 11 years ago

I use Django Suit in some of my projects, and i'd like to see an additional setting in MENU config: the ability to specify a class for the menu item.

For instance,

SUIT_CONFIG = {
    'MENU': (
        {
            'label': 'Scripting',
            # This line
            'class': 'css-class',
            'icon': 'icon-star-empty',
            'models': ('event.event', 'mission.mission', 'title.title', 'kingdom.quality', 'internal.trigger', 'internal.recurring')
        },
        '-',
}

(one interesting use case is to add .active class to always keep some sections open)

I think it is pretty straightfowrard to add, maybe i can do a PR if need be.

victormoya commented 10 years ago

I need the same feature for my project... It would be nice to have this option.

SalahAdDin commented 10 years ago

Me too