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:
Frédéric Péters 2021-10-11 16:10:04 +02:00
parent 88215b2965
commit 56affee88d
1 changed files with 1 additions and 0 deletions

View File

@ -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');