mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-20 23:26:42 +00:00
Use one card-footer-item per footer button
This commit is contained in:
parent
415a12cf78
commit
b1fea98458
1 changed files with 24 additions and 25 deletions
|
@ -12,8 +12,8 @@
|
||||||
{% block card-content %}{% endblock %}
|
{% block card-content %}{% endblock %}
|
||||||
|
|
||||||
{% block card-footer %}
|
{% block card-footer %}
|
||||||
<div class="card-content pt-0">
|
{% if moderation_mode and perms.bookwyrm.moderate_post %}
|
||||||
{% if moderation_mode and perms.bookwyrm.moderate_post %}
|
<div class="card-footer-item">
|
||||||
|
|
||||||
{# moderation options #}
|
{# moderation options #}
|
||||||
<form class="dropdown-item pt-0 pb-0" name="delete-{{status.id}}" action="/delete-status/{{ status.id }}" method="post">
|
<form class="dropdown-item pt-0 pb-0" name="delete-{{status.id}}" action="/delete-status/{{ status.id }}" method="post">
|
||||||
|
@ -22,28 +22,28 @@
|
||||||
{% trans "Delete status" %}
|
{% trans "Delete status" %}
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
{% elif no_interact %}
|
</div>
|
||||||
{# nothing here #}
|
{% elif no_interact %}
|
||||||
{% elif request.user.is_authenticated %}
|
{# nothing here #}
|
||||||
<div class="is-flex">
|
{% elif request.user.is_authenticated %}
|
||||||
<div>
|
<div class="card-footer-item">
|
||||||
{% trans "Reply" as button_text %}
|
{% 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-white toggle-button" focus="id_content_reply" %}
|
{% 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>
|
||||||
<div class="ml-3">
|
<div class="card-footer-item">
|
||||||
{% include 'snippets/boost_button.html' with status=status %}
|
{% include 'snippets/boost_button.html' with status=status %}
|
||||||
</div>
|
</div>
|
||||||
<div class="ml-3">
|
<div class="card-footer-item">
|
||||||
{% include 'snippets/fav_button.html' with status=status %}
|
{% include 'snippets/fav_button.html' with status=status %}
|
||||||
</div>
|
</div>
|
||||||
{% if not moderation_mode %}
|
{% if not moderation_mode %}
|
||||||
<div class="ml-3">
|
<div class="card-footer-item">
|
||||||
{% include 'snippets/status/status_options.html' with class="is-small is-white" right=True %}
|
{% include 'snippets/status/status_options.html' with class="is-small is-light is-transparent" right=True %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
<div class="card-footer-item">
|
||||||
<a href="/login">
|
<a href="/login">
|
||||||
<span class="icon icon-comment is-small" title="{% trans 'Reply' %}">
|
<span class="icon icon-comment is-small" title="{% trans 'Reply' %}">
|
||||||
<span class="is-sr-only">{% trans "Reply" %}</span>
|
<span class="is-sr-only">{% trans "Reply" %}</span>
|
||||||
|
@ -57,11 +57,10 @@
|
||||||
<span class="is-sr-only">{% trans "Like status" %}</span>
|
<span class="is-sr-only">{% trans "Like status" %}</span>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
{% block card-bonus %}
|
{% block card-bonus %}
|
||||||
{% if request.user.is_authenticated and not moderation_mode %}
|
{% if request.user.is_authenticated and not moderation_mode %}
|
||||||
{% with status.id|uuid as uuid %}
|
{% with status.id|uuid as uuid %}
|
||||||
|
|
Loading…
Reference in a new issue