Hide broken 'Your shelves' when not logged in.

This commit is contained in:
Adam Kelly 2020-03-27 15:13:39 +00:00
parent 2ebc758dae
commit f40105990a

View file

@ -26,7 +26,9 @@
<div id="branding"><a href="/"><img id="logo" src="/static/images/logo-small.png" alt="BookWyrm"></img></a></div> <div id="branding"><a href="/"><img id="logo" src="/static/images/logo-small.png" alt="BookWyrm"></img></a></div>
<ul class="menu"> <ul class="menu">
{% if request.user.is_authenticated %}
<li><a href="/user/{{request.user.localname}}/shelves">Your shelves</a></li> <li><a href="/user/{{request.user.localname}}/shelves">Your shelves</a></li>
{% endif %}
<li><a href="/#feed">Updates</a></li> <li><a href="/#feed">Updates</a></li>
<li><a href="/books">Discover Books</a></li> <li><a href="/books">Discover Books</a></li>
</ul> </ul>