2021-04-20 16:54:02 +00:00
|
|
|
{% extends 'components/card.html' %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% load bookwyrm_tags %}
|
|
|
|
{% load humanize %}
|
|
|
|
|
|
|
|
{% block card-header %}
|
|
|
|
<h3 class="card-header-title has-background-white-ter is-block">
|
|
|
|
{% include 'snippets/status/status_header.html' with status=status %}
|
|
|
|
</h3>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block card-content %}{% endblock %}
|
|
|
|
|
|
|
|
{% block card-footer %}
|
2021-04-21 15:32:35 +00:00
|
|
|
<div class="card-content pt-0">
|
2021-04-20 16:54:02 +00:00
|
|
|
{% if moderation_mode and perms.bookwyrm.moderate_post %}
|
|
|
|
|
|
|
|
{# moderation options #}
|
|
|
|
<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>
|
|
|
|
{% elif no_interact %}
|
|
|
|
{# nothing here #}
|
|
|
|
{% elif request.user.is_authenticated %}
|
2021-04-21 15:35:55 +00:00
|
|
|
<div class="is-flex">
|
|
|
|
<div>
|
2021-04-20 16:54:02 +00:00
|
|
|
{% trans "Reply" as button_text %}
|
2021-04-21 15:35:55 +00:00
|
|
|
{% 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-white toggle-button" focus="id_content_reply" %}
|
2021-04-20 16:54:02 +00:00
|
|
|
</div>
|
2021-04-21 15:35:55 +00:00
|
|
|
<div class="ml-3">
|
2021-04-20 16:54:02 +00:00
|
|
|
{% include 'snippets/boost_button.html' with status=status %}
|
|
|
|
</div>
|
2021-04-21 15:35:55 +00:00
|
|
|
<div class="ml-3">
|
2021-04-20 16:54:02 +00:00
|
|
|
{% include 'snippets/fav_button.html' with status=status %}
|
|
|
|
</div>
|
2021-04-21 15:35:55 +00:00
|
|
|
{% if not moderation_mode %}
|
|
|
|
<div class="ml-3">
|
|
|
|
{% include 'snippets/status/status_options.html' with class="is-small is-white" right=True %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2021-04-20 16:54:02 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
<a href="/login">
|
2021-04-21 15:35:55 +00:00
|
|
|
<span class="icon icon-comment is-small" title="{% trans 'Reply' %}">
|
2021-04-20 16:54:02 +00:00
|
|
|
<span class="is-sr-only">{% trans "Reply" %}</span>
|
|
|
|
</span>
|
|
|
|
|
2021-04-21 15:35:55 +00:00
|
|
|
<span class="icon icon-boost is-small ml-4" title="{% trans 'Boost status' %}">
|
2021-04-20 16:54:02 +00:00
|
|
|
<span class="is-sr-only">{% trans "Boost status" %}</span>
|
|
|
|
</span>
|
|
|
|
|
2021-04-21 15:35:55 +00:00
|
|
|
<span class="icon icon-heart is-small ml-4" title="{% trans 'Like status' %}">
|
2021-04-20 16:54:02 +00:00
|
|
|
<span class="is-sr-only">{% trans "Like status" %}</span>
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block card-bonus %}
|
|
|
|
{% if request.user.is_authenticated and not moderation_mode %}
|
|
|
|
{% with status.id|uuid as uuid %}
|
|
|
|
<section class="is-hidden" id="show-comment-{{ status.id }}">
|
|
|
|
<div class="card-footer">
|
|
|
|
<div class="card-footer-item">
|
|
|
|
{% include 'snippets/create_status_form.html' with reply_parent=status type="reply" %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{% endwith %}
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|