forked from mirrors/bookwyrm
parent
eaa0227c1a
commit
b072bd50d5
2 changed files with 17 additions and 2 deletions
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue