2020-03-10 00:27:54 +00:00
|
|
|
{% load fr_display %}
|
2020-09-29 01:25:05 +00:00
|
|
|
<div class="card-footer-item">
|
2020-03-27 17:11:32 +00:00
|
|
|
{% if request.user.is_authenticated %}
|
2020-03-21 23:50:49 +00:00
|
|
|
<form name="reply" action="/reply" method="post" onsubmit="return reply(event)">
|
2020-09-29 01:25:05 +00:00
|
|
|
<div class="field is-grouped">
|
2020-02-21 23:39:25 +00:00
|
|
|
{% csrf_token %}
|
2020-04-21 17:47:55 +00:00
|
|
|
<input type="hidden" name="parent" value="{{ activity.id }}">
|
2020-03-15 22:25:43 +00:00
|
|
|
<textarea name="content" placeholder="Leave a comment..." id="id_content" required="true"></textarea>
|
2020-09-29 01:25:05 +00:00
|
|
|
<button class="button" type="submit">
|
2020-03-15 22:25:43 +00:00
|
|
|
<span class="icon icon-comment">
|
|
|
|
<span class="hidden-text">Comment</span>
|
|
|
|
</span>
|
|
|
|
</button>
|
2020-09-29 01:25:05 +00:00
|
|
|
</div>
|
2020-03-15 22:25:43 +00:00
|
|
|
</form>
|
|
|
|
|
2020-04-01 22:15:21 +00:00
|
|
|
<form name="boost" action="/boost/{{ activity.id }}" method="post" onsubmit="return interact(event)" class="boost-{{ status.id }} {% if request.user|boosted:status %}hidden{% endif %}" data-id="boost-{{ status.id }}">
|
2020-03-15 22:25:43 +00:00
|
|
|
{% csrf_token %}
|
2020-09-29 01:25:05 +00:00
|
|
|
<button class="button" type="submit">
|
2020-03-15 22:25:43 +00:00
|
|
|
<span class="icon icon-boost">
|
|
|
|
<span class="hidden-text">Boost status</span>
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</form>
|
2020-04-01 22:15:21 +00:00
|
|
|
<form name="unboost" action="/unboost/{{ activity.id }}" method="post" onsubmit="return interact(event)" class="boost-{{ status.id }} active {% if not request.user|boosted:status %}hidden{% endif %}" data-id="boost-{{ status.id }}">
|
2020-03-21 21:29:39 +00:00
|
|
|
{% csrf_token %}
|
2020-09-29 01:25:05 +00:00
|
|
|
<button class="button is-success" type="submit">
|
2020-03-21 21:29:39 +00:00
|
|
|
<span class="icon icon-boost">
|
|
|
|
<span class="hidden-text">Un-boost status</span>
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</form>
|
2020-03-15 22:25:43 +00:00
|
|
|
|
2020-03-21 21:29:39 +00:00
|
|
|
<form name="favorite" action="/favorite/{{ activity.id }}" method="POST" onsubmit="return interact(event)" class="fav-{{ status.id }} {% if request.user|liked:status %}hidden{% endif %}" data-id="fav-{{ status.id }}">
|
2020-03-15 22:25:43 +00:00
|
|
|
{% csrf_token %}
|
2020-09-29 01:25:05 +00:00
|
|
|
<button class="button" type="submit">
|
2020-03-15 22:25:43 +00:00
|
|
|
<span class="icon icon-heart">
|
|
|
|
<span class="hidden-text">Like status</span>
|
|
|
|
</span>
|
|
|
|
</button>
|
2020-02-21 23:39:25 +00:00
|
|
|
</form>
|
2020-03-21 22:21:27 +00:00
|
|
|
<form name="unfavorite" action="/unfavorite/{{ activity.id }}" method="POST" onsubmit="return interact(event)" class="fav-{{ status.id }} active {% if not request.user|liked:status %}hidden{% endif %}" data-id="fav-{{ status.id }}">
|
2020-03-21 21:29:39 +00:00
|
|
|
{% csrf_token %}
|
2020-09-29 01:25:05 +00:00
|
|
|
<button class="button is-success" type="submit">
|
2020-03-21 21:29:39 +00:00
|
|
|
<span class="icon icon-heart">
|
|
|
|
<span class="hidden-text">Un-like status</span>
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</form>
|
2020-03-27 17:11:32 +00:00
|
|
|
{% 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 %}
|
2020-02-21 23:39:25 +00:00
|
|
|
</div>
|