summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-12-10 15:06:06 +0100
committerLibravatar GitHub <noreply@github.com>2023-12-10 15:06:06 +0100
commitbca9b2c89662c703842ce913a8ba3133ddd586ad (patch)
tree983e75d100fff4487acedc78d8bd262fd6f61017 /web
parent[bugfix] Narrow search scope for accounts starting with '@'; don't LOWER SQLi... (diff)
downloadgotosocial-bca9b2c89662c703842ce913a8ba3133ddd586ad.tar.xz
[bugfix] Make screenreaders read out Language of posts properly (#2436)
* [bugfix] Make screenreaders read out Language of posts properly * make published more readable
Diffstat (limited to 'web')
-rw-r--r--web/template/status.tmpl12
1 files changed, 10 insertions, 2 deletions
diff --git a/web/template/status.tmpl b/web/template/status.tmpl
index d4df926f0..eb6c6a6c6 100644
--- a/web/template/status.tmpl
+++ b/web/template/status.tmpl
@@ -69,7 +69,15 @@
{{- end }}
</section>
<aside class="info">
- <time datetime="{{- .CreatedAt -}}">{{- .CreatedAt | timestampPrecise -}}</time>
+ <dl class="sr-only">
+ <dt>Published<dt>
+ <dd>{{- .CreatedAt | timestampPrecise -}}</dd>
+ {{- if .LanguageTag.DisplayStr }}
+ <dt>Language</dt>
+ <dd>{{ .LanguageTag.DisplayStr }}</dd>
+ {{- end }}
+ </dl>
+ <time aria-hidden="true" datetime="{{- .CreatedAt -}}">{{- .CreatedAt | timestampPrecise -}}</time>
<div class="stats" role="group">
<div class="stats-item">
<span aria-hidden="true"><i class="fa fa-reply-all"></i> {{ .RepliesCount -}}</span>
@@ -90,7 +98,7 @@
</div>
{{- end }}
{{- if .LanguageTag.DisplayStr }}
- <div class="stats-item language" title="Language: {{ .LanguageTag.DisplayStr }}">{{ .LanguageTag.TagStr }}</div>
+ <div aria-hidden="true" class="stats-item language" title="Language: {{ .LanguageTag.DisplayStr }}">{{ .LanguageTag.TagStr }}</div>
{{- end }}
</div>
</aside>