braine-l-alleud: force last menu item to be /login/
this makes sure the user gets redirected to the homepage afterwards.
This commit is contained in:
parent
88215b2965
commit
56affee88d
|
@ -15,6 +15,7 @@
|
|||
{% if user.is_authenticated %}
|
||||
$last_menu_item.find('> a span').text("{{ user.first_name|escapejs }}");
|
||||
{% else %}
|
||||
$last_menu_item.find('> a').attr('href', '/login/');
|
||||
$last_menu_item.find('ul').remove();
|
||||
{% endif %}
|
||||
$('#nav ul ul').parent('li').addClass('has-submenu');
|
||||
|
|
Loading…
Reference in New Issue