In a view I have the following ul containing the navigation for that view:
<ul class="nav">
<li><a onclick={{="web2py_component('%s','component')"
%URL('addressbook','contact.load',args=organization.nodeID)}}>Home</a></li>
{{if vevent.opening_hours:}}
<li><a onclick={{="web2py_component('%s','component')"
%URL('calendar','openingHours.load',args=organization.nodeID)}}>Openingtijden</a></li>
{{pass}}
{{if vevent.event_list:}}
<li><a onclick={{="web2py_component('%s','component')"
%URL('calendar','eventList.load',args=organization.nodeID)}}>Event
list</a></li>
{{pass}}
{{if vevent.timetable:}}
<li><a onclick={{="web2py_component('%s','component')"
%URL('calendar','timetable.load',args=organization.nodeID)}}>Lesrooster</a></li>
{{pass}}
{{if vevent.course_table:}}
<li><a onclick={{="web2py_component('%s','component')"
%URL('calendar','coursetable.load',args=organization.nodeID)}}>Cursusrooster</a></li>
{{pass}}
</ul>
Whether an li is there depends on the permissions of the user. At the
moment the ul is sort of stateless. When the following url is visited:
http://127.0.0.1:8000/bootstrap/calendar/index/283 no li is active, whereas
I would like home to be active. When the visitor clicks one of the other
li that li should become the active one. Is there a way to get this to work.
Kind regards,
Annet