moviewyrm/fedireads/templates/snippets/interaction.html

34 lines
1.3 KiB
HTML
Raw Normal View History

2020-03-10 00:27:54 +00:00
{% load fr_display %}
2020-02-21 23:39:25 +00:00
<div class="interaction">
2020-03-15 22:25:43 +00:00
2020-03-16 01:12:45 +00:00
<form name="comment" action="/comment" method="post" onsubmit="return comment(e_">
2020-02-21 23:39:25 +00:00
{% csrf_token %}
<input type="hidden" name="parent" value="{{ activity.id }}"></input>
2020-03-15 22:25:43 +00:00
<textarea name="content" placeholder="Leave a comment..." id="id_content" required="true"></textarea>
<button type="submit" class="comment">
<span class="icon icon-comment">
<span class="hidden-text">Comment</span>
</span>
</button>
</form>
2020-03-16 01:12:45 +00:00
<form name="boost" action="/boost/{{ activity.id }}" method="POST" onsubmit="return interact(event)" class="{% if False %}active{% endif %}">
2020-03-15 22:25:43 +00:00
{% csrf_token %}
2020-03-16 01:12:45 +00:00
<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-03-16 01:12:45 +00:00
<form name="favorite" action="/favorite/{{ activity.id }}" method="POST" onsubmit="return interact(event)" class="{% if request.user|liked:status %}active{% endif %}">
2020-03-15 22:25:43 +00:00
{% csrf_token %}
2020-03-16 01:12:45 +00:00
<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>
</div>