2021-01-29 16:51:36 +00:00
|
|
|
{% extends 'components/card.html' %}
|
2021-02-28 02:48:10 +00:00
|
|
|
{% load i18n %}
|
2021-01-16 22:04:09 +00:00
|
|
|
|
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">
|
2021-02-23 21:34:16 +00:00
|
|
|
{% include 'snippets/status/status_header.html' with status=status %}
|
2021-01-16 22:04:09 +00:00
|
|
|
</h3>
|
|
|
|
{% endblock %}
|
2020-11-08 02:59:38 +00:00
|
|
|
|
|
|
|
|
2021-01-16 22:04:09 +00:00
|
|
|
{% block card-content %}
|
2021-02-23 21:34:16 +00:00
|
|
|
{% include 'snippets/status/status_content.html' with status=status %}
|
2021-01-16 22:04:09 +00:00
|
|
|
{% 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">
|
2021-03-12 01:38:21 +00:00
|
|
|
{% if moderation_mode and perms.bookwyrm.moderate_post %}
|
2021-03-12 19:25:56 +00:00
|
|
|
|
2021-03-12 01:38:21 +00:00
|
|
|
{# moderation options #}
|
2021-03-12 19:25:56 +00:00
|
|
|
<form class="dropdown-item pt-0 pb-0" name="delete-{{status.id}}" action="/delete-status/{{ status.id }}" method="post">
|
|
|
|
{% csrf_token %}
|
|
|
|
<button class="button is-danger is-light" type="submit">
|
|
|
|
{% trans "Delete status" %}
|
|
|
|
</button>
|
|
|
|
</form>
|
2021-04-04 16:18:52 +00:00
|
|
|
{% elif no_interact %}
|
|
|
|
{# nothing here #}
|
2021-03-12 01:38:21 +00:00
|
|
|
{% elif request.user.is_authenticated %}
|
2021-01-17 18:45:25 +00:00
|
|
|
<div class="field has-addons">
|
|
|
|
<div class="control">
|
2021-03-01 01:10:30 +00:00
|
|
|
{% trans "Reply" as button_text %}
|
|
|
|
{% include 'snippets/toggle/toggle_button.html' with controls_text="show-comment" controls_uid=status.id text=button_text icon="comment" class="is-small toggle-button" focus="id_content_reply" %}
|
2021-01-17 18:45:25 +00:00
|
|
|
</div>
|
|
|
|
<div class="control">
|
|
|
|
{% include 'snippets/boost_button.html' with status=status %}
|
|
|
|
</div>
|
|
|
|
<div class="control">
|
|
|
|
{% include 'snippets/fav_button.html' with status=status %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-08 02:59:38 +00:00
|
|
|
|
2021-01-16 22:04:09 +00:00
|
|
|
{% else %}
|
|
|
|
<a href="/login">
|
2021-02-28 02:48:10 +00:00
|
|
|
<span class="icon icon-comment" title="{% trans 'Reply' %}">
|
|
|
|
<span class="is-sr-only">{% trans "Reply" %}</span>
|
2021-01-16 22:04:09 +00:00
|
|
|
</span>
|
2020-11-08 02:59:38 +00:00
|
|
|
|
2021-02-28 02:48:10 +00:00
|
|
|
<span class="icon icon-boost" title="{% trans 'Boost status' %}">
|
|
|
|
<span class="is-sr-only">{% trans "Boost status" %}</span>
|
2021-01-16 22:04:09 +00:00
|
|
|
</span>
|
2020-11-08 02:59:38 +00:00
|
|
|
|
2021-02-28 02:48:10 +00:00
|
|
|
<span class="icon icon-heart" title="{% trans 'Like status' %}">
|
|
|
|
<span class="is-sr-only">{% trans "Like status" %}</span>
|
2021-01-16 22:04:09 +00:00
|
|
|
</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>
|
2021-03-12 01:38:21 +00:00
|
|
|
{% if not moderation_mode %}
|
2021-01-16 22:04:09 +00:00
|
|
|
<div class="card-footer-item">
|
2021-02-23 21:34:16 +00:00
|
|
|
{% include 'snippets/status/status_options.html' with class="is-small" right=True %}
|
2021-01-16 22:04:09 +00:00
|
|
|
</div>
|
2021-03-12 01:38:21 +00:00
|
|
|
{% endif %}
|
2021-01-16 22:04:09 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block card-bonus %}
|
2021-03-12 01:38:21 +00:00
|
|
|
{% if request.user.is_authenticated and not moderation_mode %}
|
2021-01-16 22:04:09 +00:00
|
|
|
{% with status.id|uuid as uuid %}
|
2021-01-17 18:38:34 +00:00
|
|
|
<section class="hidden" id="show-comment-{{ status.id }}">
|
2021-01-16 22:04:09 +00:00
|
|
|
<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 %}
|
|
|
|
{% endblock %}
|