Re: [mezzanine-users] How do I hide a link in the navbar when a user is logged in/out?

2017-12-06 Thread Ryne Everett
Not the most elegant solution but you should be able to do something like this: {% if page.in_menu %} {% if page.slug == 'login_register' %} {% if not user.is_staff %} {{ page.t

[mezzanine-users] How do I hide a link in the navbar when a user is logged in/out?

2017-11-30 Thread Tom Tanner
I went to the Pages section of my site's admin menu. I added a Link titled "Log in/Register" with the URL "login_register." In my navbar in `base.html`, I have this Django/HTML: {% for page in page_branch %} {% if not has_home and page.is_primary and forloop.first %}