From d51f2883aadb795b1fac961e08de820cbedb101f Mon Sep 17 00:00:00 2001 From: TAKAHASHI Shuuji Date: Mon, 9 Jan 2023 04:20:05 +0900 Subject: [PATCH] Allow better keyboard navigation (#373) --- templates/activities/_boost.html | 4 ++-- templates/activities/_image_uploaded.html | 6 +++--- templates/activities/_like.html | 4 ++-- templates/activities/_menu.html | 2 +- templates/activities/_post.html | 6 +++--- templates/activities/compose.html | 4 ++-- templates/activities/post_delete.html | 2 +- templates/identity/_view_menu.html | 2 +- templates/identity/view.html | 3 ++- 9 files changed, 17 insertions(+), 16 deletions(-) diff --git a/templates/activities/_boost.html b/templates/activities/_boost.html index 4dfefcb..5f10856 100644 --- a/templates/activities/_boost.html +++ b/templates/activities/_boost.html @@ -1,10 +1,10 @@ {% if post.pk in interactions.boost %} - + {% else %} - + diff --git a/templates/activities/_image_uploaded.html b/templates/activities/_image_uploaded.html index 36bd7fe..2d9e555 100644 --- a/templates/activities/_image_uploaded.html +++ b/templates/activities/_image_uploaded.html @@ -5,15 +5,15 @@ {{ attachment.name|default:"(no description)" }}

- Remove +
{% if request.htmx %} - Add Image - + {% endif %} diff --git a/templates/activities/_like.html b/templates/activities/_like.html index fe96c5f..6c45710 100644 --- a/templates/activities/_like.html +++ b/templates/activities/_like.html @@ -1,10 +1,10 @@ {% if post.pk in interactions.like %} - + {% else %} - + diff --git a/templates/activities/_menu.html b/templates/activities/_menu.html index 6c6a451..9961999 100644 --- a/templates/activities/_menu.html +++ b/templates/activities/_menu.html @@ -64,7 +64,7 @@
{{ config.post_length }} - CW +
diff --git a/templates/activities/_post.html b/templates/activities/_post.html index e3a6922..4111d35 100644 --- a/templates/activities/_post.html +++ b/templates/activities/_post.html @@ -28,9 +28,9 @@ {% if post.summary %} {% if config_identity.expand_linked_cws %} -
+
{% else %} -
+
{% endif %} {{ post.summary }}
@@ -70,7 +70,7 @@ {% include "activities/_reply.html" %} {% include "activities/_like.html" %} {% include "activities/_boost.html" %} - + diff --git a/templates/activities/compose.html b/templates/activities/compose.html index 9587559..e587f16 100644 --- a/templates/activities/compose.html +++ b/templates/activities/compose.html @@ -25,12 +25,12 @@ {% endfor %} {% endif %} {% if not post or post.attachments.count < 4 %} - Add Image - + {% endif %}
diff --git a/templates/activities/post_delete.html b/templates/activities/post_delete.html index 47d283c..dc69a36 100644 --- a/templates/activities/post_delete.html +++ b/templates/activities/post_delete.html @@ -7,7 +7,7 @@ {% include "activities/_mini_post.html" %}
{% csrf_token %} - Cancel +
diff --git a/templates/identity/_view_menu.html b/templates/identity/_view_menu.html index ae05f84..2e0a100 100644 --- a/templates/identity/_view_menu.html +++ b/templates/identity/_view_menu.html @@ -23,7 +23,7 @@ {% endif %} {% if request.user.admin %} - + diff --git a/templates/identity/view.html b/templates/identity/view.html index 13899c9..ed9fa83 100644 --- a/templates/identity/view.html +++ b/templates/identity/view.html @@ -29,7 +29,8 @@ @{{ identity.handle }}