From 9b88b65be74a47da1d87dc5946a16960faea8847 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 15 May 2022 14:49:37 +0200 Subject: [PATCH] Remove redundant image alt attribute When the image is present next to text, repeating the text in the alt= makes tools reading the alt (screen reader, clipboard, ...) to repeat the text --- templates/room-memberinfo.qtpl | 6 +++--- templates/room-servers.qtpl | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/room-memberinfo.qtpl b/templates/room-memberinfo.qtpl index 53691e4..49fbee9 100644 --- a/templates/room-memberinfo.qtpl +++ b/templates/room-memberinfo.qtpl @@ -32,10 +32,10 @@ {% if p.MemberInfo.AvatarURL.IsValid() %} - {%s p.MemberInfo.MXID %} + {% else %} - {%s p.MemberInfo.MXID %} + {% endif %} @@ -65,4 +65,4 @@ {% endif %} {% endfunc %} -{% endstripspace %} \ No newline at end of file +{% endstripspace %} diff --git a/templates/room-servers.qtpl b/templates/room-servers.qtpl index d160600..871c876 100644 --- a/templates/room-servers.qtpl +++ b/templates/room-servers.qtpl @@ -14,7 +14,7 @@ {% stripspace %} {% func (p *RoomServersPage) printServer(server mxclient.ServerUserCount) %} - {%s server.ServerName %} {%s server.ServerName %} + {%s server.ServerName %} {%d server.NumUsers %} {% endfunc %} @@ -72,4 +72,4 @@ return RoomBaseUrl(p.RoomInfo.RoomID) + "/" } -%} \ No newline at end of file +%}