Render pages when logged out

Fixes #92
This commit is contained in:
Mouse Reeve 2020-03-27 10:11:32 -07:00
parent eaa0227c1a
commit b072bd50d5
2 changed files with 17 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{% if request.user == user %} {% if request.user == user or not request.user.is_authenticated %}
{% elif request.user in user.follower_requests.all %} {% elif request.user in user.follower_requests.all %}
<div> <div>

View file

@ -1,6 +1,6 @@
{% load fr_display %} {% load fr_display %}
<div class="interaction"> <div class="interaction">
{% if request.user.is_authenticated %}
<form name="reply" action="/reply" method="post" onsubmit="return reply(event)"> <form name="reply" action="/reply" method="post" onsubmit="return reply(event)">
{% csrf_token %} {% csrf_token %}
<input type="hidden" name="parent" value="{{ activity.id }}"></input> <input type="hidden" name="parent" value="{{ activity.id }}"></input>
@ -45,5 +45,20 @@
</span> </span>
</button> </button>
</form> </form>
{% else %}
<a href="/login">
<span class="icon icon-comment">
<span class="hidden-text">Comment</span>
</span>
<span class="icon icon-boost">
<span class="hidden-text">Boost status</span>
</span>
<span class="icon icon-heart">
<span class="hidden-text">Like status</span>
</span>
</a>
{% endif %}
</div> </div>