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 %}
-
+
{{ post.stats_with_defaults.boosts }}
{% else %}
-
+
{{ post.stats_with_defaults.boosts }}
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)" }}
{% 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 %}
-
+
{{ post.stats_with_defaults.likes }}
{% else %}
-
+
{{ post.stats_with_defaults.likes }}
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" %}
-