thenomadlad / RA-Scheduler

0 stars 0 forks source link

Menu bar positions should highlight the active page #3

Closed gbrova closed 9 years ago

gbrova commented 9 years ago

Currently, "Home" always appears active. This is incorrect if the user is now at a different tab. We should fix this.

gbrova commented 9 years ago

Fixed at commit 6a92e5d5.

Solution was to programmatically add the menu items using jinja templates, then for individual pages' templates, mark them as active with something like {% set active_page = "view_schedules" %}

For details, see stackoverflow thread: http://stackoverflow.com/questions/18600031/

thenomadlad commented 9 years ago

two changes: 1 - added href="#" to current pages 2 - separated nav bar into "default" "user" and "non-user" buttons