From 7fc0302376f73028843493dfce9922665c1a353a Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Thu, 18 Jan 2024 16:15:43 +1300 Subject: [PATCH] aria attributes on buttons --- app/templates/base.html | 8 ++++---- app/templates/post/_comment_voting_buttons.html | 4 ++-- app/templates/post/_post_teaser.html | 9 ++++----- app/templates/post/_post_voting_buttons.html | 4 ++-- 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/app/templates/base.html b/app/templates/base.html index 9e38cc1f..d6e4f72d 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -97,7 +97,7 @@
{% if not low_bandwidth %}Logo{% endif %}{{ g.site.name }} {% if current_user.is_authenticated %} - + {% if current_user.unread_notifications %} {{ current_user.unread_notifications }} {% else %} @@ -172,7 +172,7 @@ {% endif %} {% endif %} - - + +
diff --git a/app/templates/post/_comment_voting_buttons.html b/app/templates/post/_comment_voting_buttons.html index 75507211..7b90c25c 100644 --- a/app/templates/post/_comment_voting_buttons.html +++ b/app/templates/post/_comment_voting_buttons.html @@ -1,6 +1,6 @@ {% if current_user.is_authenticated and current_user.verified %} {% if can_upvote(current_user, community) %} -
@@ -8,7 +8,7 @@ {% endif %} {{ comment.up_votes - comment.down_votes }} {% if can_downvote(current_user, community) %} -
diff --git a/app/templates/post/_post_teaser.html b/app/templates/post/_post_teaser.html index 73952b1c..b4ae33cf 100644 --- a/app/templates/post/_post_teaser.html +++ b/app/templates/post/_post_teaser.html @@ -51,18 +51,17 @@
- + {{ post.reply_count }} {% if post.type == POST_TYPE_IMAGE %} -   {% if post.image_id %} - + {% else %} - + {% endif %} {% endif %}
- +
diff --git a/app/templates/post/_post_voting_buttons.html b/app/templates/post/_post_voting_buttons.html index 0ccd990b..3e3f296e 100644 --- a/app/templates/post/_post_voting_buttons.html +++ b/app/templates/post/_post_voting_buttons.html @@ -1,6 +1,6 @@ {% if current_user.is_authenticated and current_user.verified %} {% if can_upvote(current_user, post.community) %} -
{{ shorten_number(post.up_votes) }} @@ -8,7 +8,7 @@
{% endif %} {% if can_downvote(current_user, post.community) %} -
{{ shorten_number(post.down_votes) }}