Merge branch 'add-back-feeds-on-public-group-page' into 'master'

Add back RSS/ical links on public group pages

Closes #782

See merge request framasoft/mobilizon!989
This commit is contained in:
Thomas Citharel 2021-07-21 10:23:22 +00:00
commit aa81d7952c
3 changed files with 18 additions and 7 deletions

View File

@ -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"
}

View File

@ -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"
}

View File

@ -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,
@ -172,7 +173,6 @@
</b-button>
<b-dropdown
class="menu-dropdown"
v-if="isCurrentActorAGroupMember || previewPublic"
position="is-bottom-left"
aria-role="menu"
>
@ -181,15 +181,18 @@
outlined
role="button"
icon-left="dots-horizontal"
aria-label="Other actions"
:aria-label="$t('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()"
>