Wednesday, January 16, 2013

Django navigation bar (active link highlighting) | TurnKey Linux Blog

Django navigation bar (active link highlighting) | TurnKey Linux Blog: "Every web application needs a navigation bar. Common practice is to indicate to the user where he or she is, and is usually implemented by using a visual aid such as a bold type-face, different color or an icon.

I wanted an elegant, generic, extendable solution to "highlight" a link on the navigation bar without hardcoding URLs, using ifequals, or using template block inheritance by specifying a navbar block on each and every template (you'd be surprised, but the above mentioned are recommend often)."

'via Blog this'