2021-01-16 22:04:09 +00:00
|
|
|
{% extends 'snippets/components/card.html' %}
|
|
|
|
|
2020-12-13 02:25:04 +00:00
|
|
|
{% load bookwyrm_tags %}
|
2020-11-08 02:59:38 +00:00
|
|
|
{% load humanize %}
|
|
|
|
|
2021-01-16 22:04:09 +00:00
|
|
|
{% block card-header %}
|
|
|
|
<h3 class="card-header-title has-background-white-ter is-block">
|
|
|
|
{% include 'snippets/status_header.html' with status=status %}
|
|
|
|
</h3>
|
|
|
|
{% endblock %}
|
2020-11-08 02:59:38 +00:00
|
|
|
|
|
|
|
|
2021-01-16 22:04:09 +00:00
|
|
|
{% block card-content %}
|
|
|
|
{% include 'snippets/status_content.html' with status=status %}
|
|
|
|
{% endblock %}
|
2020-11-08 02:59:38 +00:00
|
|
|
|
|
|
|
|
2021-01-16 22:04:09 +00:00
|
|
|
{% block card-footer %}
|
|
|
|
<div class="card-footer-item">
|
|
|
|
{% if request.user.is_authenticated %}
|
|
|
|
{% include 'snippets/toggle/toggle_button.html' with controls_text="show-comment" controls_uid=status.id text="Reply" icon='comment' small=True %}
|
|
|
|
{% include 'snippets/boost_button.html' with status=status %}
|
|
|
|
{% include 'snippets/fav_button.html' with status=status %}
|
2020-11-08 02:59:38 +00:00
|
|
|
|
2021-01-16 22:04:09 +00:00
|
|
|
{% else %}
|
|
|
|
<a href="/login">
|
|
|
|
<span class="icon icon-comment" title="Reply">
|
|
|
|
<span class="is-sr-only">Reply</span>
|
|
|
|
</span>
|
2020-11-08 02:59:38 +00:00
|
|
|
|
2021-01-16 22:04:09 +00:00
|
|
|
<span class="icon icon-boost" title="Boost status">
|
|
|
|
<span class="is-sr-only">Boost status</span>
|
|
|
|
</span>
|
2020-11-08 02:59:38 +00:00
|
|
|
|
2021-01-16 22:04:09 +00:00
|
|
|
<span class="icon icon-heart" title="Like status">
|
|
|
|
<span class="is-sr-only">Like status</span>
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2020-11-08 02:59:38 +00:00
|
|
|
|
2021-01-16 22:04:09 +00:00
|
|
|
<div class="card-footer-item">
|
|
|
|
{% include 'snippets/privacy-icons.html' with item=status %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-footer-item">
|
|
|
|
<a href="{{ status.remote_id }}">{{ status.published_date | post_date }}</a>
|
|
|
|
</div>
|
|
|
|
{% if status.user == request.user %}
|
|
|
|
<div class="card-footer-item">
|
|
|
|
{% include 'snippets/toggle/toggle_button.html' with controls_text="more-info" controls_uid=status.id text="More options" icon="dots-three" small=True %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block card-bonus %}
|
|
|
|
{% if request.user.is_authenticated %}
|
|
|
|
{% with status.id|uuid as uuid %}
|
2021-01-17 16:50:47 +00:00
|
|
|
<input class="toggle-control" type="checkbox" name="show-comment-{{ status.id }}" id="show-comment-{{ status.id }}" data-focus-target="id_content_{{ status.id }}{{ uuid }}_reply">
|
2021-01-16 22:04:09 +00:00
|
|
|
<section class="toggle-content hidden">
|
|
|
|
<div class="card-footer">
|
|
|
|
<div class="card-footer-item">
|
2021-01-17 03:57:20 +00:00
|
|
|
{% include 'snippets/create_status_form.html' with reply_parent=status type="reply" %}
|
2020-11-12 02:32:52 +00:00
|
|
|
</div>
|
2021-01-16 22:04:09 +00:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{% endwith %}
|
|
|
|
{% endif %}
|
2020-11-12 02:32:52 +00:00
|
|
|
|
2021-01-16 22:04:09 +00:00
|
|
|
{% if status.user == request.user %}
|
|
|
|
<section>
|
|
|
|
<input class="toggle-control" type="checkbox" name="more-info-{{ status.id }}" id="more-info-{{ status.id }}">
|
|
|
|
<div class="toggle-content hidden card-footer">
|
2020-11-11 19:52:14 +00:00
|
|
|
{% if status.user == request.user %}
|
2021-01-16 22:04:09 +00:00
|
|
|
<div class="card-footer-item">
|
|
|
|
<form name="delete-{{status.id}}" action="/delete-status/{{ status.id }}" method="post">
|
|
|
|
{% csrf_token %}
|
|
|
|
<button class="button is-danger is-light" type="submit">
|
|
|
|
Delete post
|
|
|
|
</button>
|
|
|
|
</form>
|
2020-11-08 02:59:38 +00:00
|
|
|
</div>
|
2020-11-11 19:52:14 +00:00
|
|
|
{% endif %}
|
2021-01-16 22:04:09 +00:00
|
|
|
</div>
|
|
|
|
</section>
|
2020-11-08 02:59:38 +00:00
|
|
|
{% endif %}
|
2021-01-16 22:04:09 +00:00
|
|
|
{% endblock %}
|