Hide login form for authenticated users

This commit is contained in:
Mouse Reeve 2021-01-03 14:31:32 -08:00
parent 0247f89c0b
commit 7242adadaa

View file

@ -1,6 +1,7 @@
{% extends 'layout.html' %} {% extends 'layout.html' %}
{% block content %} {% block content %}
{% if not request.user.is_authenticated %}
<div class="block"> <div class="block">
<h1 class="title has-text-centered">{{ site.name }}: Social Reading and Reviewing</h1> <h1 class="title has-text-centered">{{ site.name }}: Social Reading and Reviewing</h1>
</div> </div>
@ -25,6 +26,11 @@
</div> </div>
</div> </div>
</section> </section>
{% else %}
<div class="block">
<h1 class="title has-text-centered">Discover</h1>
</div>
{% endif %}
<div class="block is-hidden-tablet"> <div class="block is-hidden-tablet">
<h2 class="title has-text-centered">Recent Books</h2> <h2 class="title has-text-centered">Recent Books</h2>