2021-04-20 16:54:02 +00:00
|
|
|
{% extends 'components/card.html' %}
|
|
|
|
{% load i18n %}
|
2021-05-11 21:41:28 +00:00
|
|
|
{% load utilities %}
|
2021-04-20 16:54:02 +00:00
|
|
|
|
|
|
|
{% block card-header %}
|
2021-10-01 21:12:49 +00:00
|
|
|
<div
|
2022-02-20 00:34:17 +00:00
|
|
|
class="card-header-title has-background-secondary is-block"
|
2021-10-01 21:12:49 +00:00
|
|
|
{% if main %}id="anchor-{{ status.id }}"{% endif %}
|
|
|
|
>
|
2021-08-09 01:40:47 +00:00
|
|
|
{% include 'snippets/status/header.html' with status=status %}
|
2021-04-21 20:30:52 +00:00
|
|
|
</div>
|
2021-04-20 16:54:02 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block card-content %}{% endblock %}
|
|
|
|
|
|
|
|
{% block card-footer %}
|
2021-04-21 20:31:27 +00:00
|
|
|
{% if moderation_mode and perms.bookwyrm.moderate_post %}
|
2021-04-20 16:54:02 +00:00
|
|
|
|
2021-08-09 01:40:47 +00:00
|
|
|
<div class="card-footer-item">
|
2021-04-20 16:54:02 +00:00
|
|
|
{# moderation options #}
|
2021-05-23 01:34:34 +00:00
|
|
|
<form name="delete-{{ status.id }}" action="/delete-status/{{ status.id }}" method="post">
|
2021-04-20 16:54:02 +00:00
|
|
|
{% csrf_token %}
|
|
|
|
<button class="button is-danger is-light" type="submit">
|
|
|
|
{% trans "Delete status" %}
|
|
|
|
</button>
|
|
|
|
</form>
|
2021-04-21 20:31:27 +00:00
|
|
|
</div>
|
2021-08-09 01:40:47 +00:00
|
|
|
|
2021-04-21 20:31:27 +00:00
|
|
|
{% elif no_interact %}
|
|
|
|
{# nothing here #}
|
|
|
|
{% elif request.user.is_authenticated %}
|
2021-08-09 01:40:47 +00:00
|
|
|
|
2022-01-05 22:54:51 +00:00
|
|
|
<div class="card-footer-item">
|
|
|
|
{% trans "Reply" as button_text %}
|
|
|
|
{% include 'snippets/toggle/toggle_button.html' with controls_text="show_comment" controls_uid=status.id text=button_text icon_with_text="comment" class="is-small is-light is-transparent toggle-button" focus="id_content_reply" %}
|
|
|
|
</div>
|
|
|
|
<div class="card-footer-item">
|
|
|
|
{% include 'snippets/boost_button.html' with status=status %}
|
|
|
|
</div>
|
|
|
|
<div class="card-footer-item">
|
|
|
|
{% include 'snippets/fav_button.html' with status=status %}
|
|
|
|
</div>
|
|
|
|
{% if not moderation_mode %}
|
|
|
|
<div class="card-footer-item">
|
|
|
|
{% include 'snippets/status/status_options.html' with class="is-small is-light is-transparent" right=True %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2021-04-20 16:54:02 +00:00
|
|
|
|
2021-04-21 20:31:27 +00:00
|
|
|
{% else %}
|
2021-04-20 16:54:02 +00:00
|
|
|
|
2022-01-05 22:54:51 +00:00
|
|
|
<div class="card-footer-item">
|
|
|
|
<a href="{% url 'login' %}">
|
|
|
|
<span class="icon icon-comment is-small" title="{% trans 'Reply' %}">
|
|
|
|
<span class="is-sr-only">{% trans "Reply" %}</span>
|
|
|
|
</span>
|
2021-04-20 16:54:02 +00:00
|
|
|
|
2022-01-05 22:54:51 +00:00
|
|
|
<span class="icon icon-boost is-small ml-4" title="{% trans 'Boost status' %}">
|
|
|
|
<span class="is-sr-only">{% trans "Boost status" %}</span>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span class="icon icon-heart is-small ml-4" title="{% trans 'Like status' %}">
|
|
|
|
<span class="is-sr-only">{% trans "Like status" %}</span>
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
2021-08-09 01:40:47 +00:00
|
|
|
|
2021-04-21 20:31:27 +00:00
|
|
|
{% endif %}
|
2021-04-20 16:54:02 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block card-bonus %}
|
2021-10-15 03:29:45 +00:00
|
|
|
{% if request.user.is_authenticated and not moderation_mode and not no_interact %}
|
2021-04-20 16:54:02 +00:00
|
|
|
{% with status.id|uuid as uuid %}
|
2021-09-09 15:20:55 +00:00
|
|
|
<section class="reply-panel is-hidden" id="show_comment_{{ status.id }}">
|
2021-04-20 16:54:02 +00:00
|
|
|
<div class="card-footer">
|
|
|
|
<div class="card-footer-item">
|
2021-08-09 01:40:47 +00:00
|
|
|
{% include 'snippets/create_status/status.html' with type="reply" reply_parent=status book=None %}
|
2021-04-20 16:54:02 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{% endwith %}
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|