From f7adaee0ed4fc9b812c21f487bcfe9c4d418f291 Mon Sep 17 00:00:00 2001 From: Joachim Date: Wed, 21 Apr 2021 17:35:55 +0200 Subject: [PATCH] Verbosify buttons --- bookwyrm/templates/snippets/boost_button.html | 14 ++++++------- bookwyrm/templates/snippets/fav_button.html | 11 +++++----- .../templates/snippets/status/layout.html | 21 ++++++++++++------- .../snippets/status/status_options.html | 5 ++--- .../snippets/toggle/toggle_button.html | 3 +++ 5 files changed, 29 insertions(+), 25 deletions(-) diff --git a/bookwyrm/templates/snippets/boost_button.html b/bookwyrm/templates/snippets/boost_button.html index e590c58d..27a6196a 100644 --- a/bookwyrm/templates/snippets/boost_button.html +++ b/bookwyrm/templates/snippets/boost_button.html @@ -4,18 +4,16 @@ {% with status.id|uuid as uuid %}
{% csrf_token %} -
{% csrf_token %} -
{% endwith %} diff --git a/bookwyrm/templates/snippets/fav_button.html b/bookwyrm/templates/snippets/fav_button.html index adb3d033..da6e6661 100644 --- a/bookwyrm/templates/snippets/fav_button.html +++ b/bookwyrm/templates/snippets/fav_button.html @@ -3,18 +3,17 @@ {% with status.id|uuid as uuid %}
{% csrf_token %} -
{% csrf_token %} -
{% endwith %} diff --git a/bookwyrm/templates/snippets/status/layout.html b/bookwyrm/templates/snippets/status/layout.html index 9c9d8fc1..f132f594 100644 --- a/bookwyrm/templates/snippets/status/layout.html +++ b/bookwyrm/templates/snippets/status/layout.html @@ -26,30 +26,35 @@ {% elif no_interact %} {# nothing here #} {% elif request.user.is_authenticated %} -
-
+
+
{% 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" %} + {% 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/boost_button.html' with status=status %}
-
+
{% include 'snippets/fav_button.html' with status=status %}
+ {% if not moderation_mode %} +
+ {% include 'snippets/status/status_options.html' with class="is-small is-white" right=True %} +
+ {% endif %}
{% else %} - + {% trans "Reply" %} - + {% trans "Boost status" %} - + {% trans "Like status" %} diff --git a/bookwyrm/templates/snippets/status/status_options.html b/bookwyrm/templates/snippets/status/status_options.html index a76cbc39..16d49b3d 100644 --- a/bookwyrm/templates/snippets/status/status_options.html +++ b/bookwyrm/templates/snippets/status/status_options.html @@ -3,9 +3,8 @@ {% load bookwyrm_tags %} {% block dropdown-trigger %} - - {% trans "More options" %} - + +{% trans "More options" %} {% endblock %} {% block dropdown-list %} diff --git a/bookwyrm/templates/snippets/toggle/toggle_button.html b/bookwyrm/templates/snippets/toggle/toggle_button.html index fe1823f1..d5a8f3dc 100644 --- a/bookwyrm/templates/snippets/toggle/toggle_button.html +++ b/bookwyrm/templates/snippets/toggle/toggle_button.html @@ -13,6 +13,9 @@ {{ text }} + {% elif icon_with_text %} + + {{ text }} {% else %} {{ text }} {% endif %}