From 7ca7c132fb26e363adfe1da07ca0d8fafa6930d9 Mon Sep 17 00:00:00 2001 From: Thomas Citharel <tcit@tcit.fr> Date: Wed, 21 Jul 2021 10:45:42 +0200 Subject: [PATCH 1/3] Add back RSS/ical links on public group pages Signed-off-by: Thomas Citharel <tcit@tcit.fr> --- js/src/views/Group/Group.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/js/src/views/Group/Group.vue b/js/src/views/Group/Group.vue index 5322fcb29..6c2ca2e14 100644 --- a/js/src/views/Group/Group.vue +++ b/js/src/views/Group/Group.vue @@ -172,7 +172,6 @@ </b-button> <b-dropdown class="menu-dropdown" - v-if="isCurrentActorAGroupMember || previewPublic" position="is-bottom-left" aria-role="menu" > @@ -183,13 +182,16 @@ icon-left="dots-horizontal" aria-label="Other actions" /> - <b-dropdown-item aria-role="menuitem"> + <b-dropdown-item + aria-role="menuitem" + v-if="isCurrentActorAGroupMember || previewPublic" + > <b-switch v-model="previewPublic">{{ $t("Public preview") }}</b-switch> </b-dropdown-item> <b-dropdown-item - v-if="!previewPublic" + v-if="!previewPublic && isCurrentActorAGroupMember" aria-role="menuitem" @click="triggerShare()" > From 1fe5ff802dac2a81a60c294043bacfc6ec7f3df7 Mon Sep 17 00:00:00 2001 From: Thomas Citharel <tcit@tcit.fr> Date: Wed, 21 Jul 2021 10:47:40 +0200 Subject: [PATCH 2/3] Aria improvements on group page Signed-off-by: Thomas Citharel <tcit@tcit.fr> --- js/src/views/Group/Group.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/src/views/Group/Group.vue b/js/src/views/Group/Group.vue index 6c2ca2e14..a36048337 100644 --- a/js/src/views/Group/Group.vue +++ b/js/src/views/Group/Group.vue @@ -1,7 +1,7 @@ <template> <div class="container is-widescreen"> <div class="header"> - <nav class="breadcrumb" aria-label="breadcrumbs"> + <nav class="breadcrumb" :aria-label="$t('Breadcrumbs')"> <ul> <li> <router-link :to="{ name: RouteName.MY_GROUPS }">{{ @@ -10,6 +10,7 @@ </li> <li class="is-active"> <router-link + aria-current-value="location" v-if="group && group.preferredUsername" :to="{ name: RouteName.GROUP, @@ -180,7 +181,7 @@ outlined role="button" icon-left="dots-horizontal" - aria-label="Other actions" + :aria-label="$t('Other actions')" /> <b-dropdown-item aria-role="menuitem" From 3d9ed58fa4a1b98084c19bcb59524bca383b38f5 Mon Sep 17 00:00:00 2001 From: Thomas Citharel <tcit@tcit.fr> Date: Wed, 21 Jul 2021 10:47:50 +0200 Subject: [PATCH 3/3] Update language files Signed-off-by: Thomas Citharel <tcit@tcit.fr> --- js/src/i18n/en_US.json | 6 +++++- js/src/i18n/fr_FR.json | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/js/src/i18n/en_US.json b/js/src/i18n/en_US.json index 6b1574987..234ea1da5 100644 --- a/js/src/i18n/en_US.json +++ b/js/src/i18n/en_US.json @@ -1063,5 +1063,9 @@ "Ask your instance admin to {enable_feature}.": "Ask your instance admin to {enable_feature}.", "Event URL": "Event URL", "Copy URL to clipboard": "Copy URL to clipboard", - "Group URL": "Group URL" + "Group URL": "Group URL", + "View less": "View less", + "View more": "View more", + "Breadcrumbs": "Breadcrumbs", + "Other actions": "Other actions" } diff --git a/js/src/i18n/fr_FR.json b/js/src/i18n/fr_FR.json index 7b635272c..9410d7437 100644 --- a/js/src/i18n/fr_FR.json +++ b/js/src/i18n/fr_FR.json @@ -1154,5 +1154,9 @@ "Ask your instance admin to {enable_feature}.": "Demandez à l'administrateur⋅ice de votre instance d'{enable_feature}.", "Event URL": "URL de l'événement", "Copy URL to clipboard": "Copier l'URL dans le presse-papiers", - "Group URL": "URL du groupe" + "Group URL": "URL du groupe", + "View less": "Voir moins", + "View more": "Voir plus", + "Breadcrumbs": "Fil d'Ariane", + "Other actions": "Autres actions" }