Add a warning message on the group page that the group is remote

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-11-06 10:45:06 +01:00
parent 9290ab9487
commit 53de80dfee
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773
3 changed files with 16 additions and 2 deletions

View file

@ -1228,5 +1228,7 @@
"Showing events starting on": "Showing events starting on", "Showing events starting on": "Showing events starting on",
"Showing events before": "Showing events before", "Showing events before": "Showing events before",
"Clear date filter field": "Clear date filter field", "Clear date filter field": "Clear date filter field",
"{count} members or followers": "No members or followers|One member or follower|{count} members or followers" "{count} members or followers": "No members or followers|One member or follower|{count} members or followers",
"This profile is from another instance, the informations shown here may be incomplete.": "This profile is from another instance, the informations shown here may be incomplete.",
"View full profile": "View full profile"
} }

View file

@ -1332,5 +1332,7 @@
"Showing events starting on": "Afficher les événements à partir de", "Showing events starting on": "Afficher les événements à partir de",
"Showing events before": "Afficher les événements avant", "Showing events before": "Afficher les événements avant",
"Clear date filter field": "Vider le champ de filtre de la date", "Clear date filter field": "Vider le champ de filtre de la date",
"{count} members or followers": "Aucun⋅e membre ou abonné⋅e|Un⋅e membre ou abonné⋅e|{count} membres ou abonné⋅es" "{count} members or followers": "Aucun⋅e membre ou abonné⋅e|Un⋅e membre ou abonné⋅e|{count} membres ou abonné⋅es",
"This profile is from another instance, the informations shown here may be incomplete.": "Ce profil provient d'une autre instance, les informations montrées ici peuvent être incomplètes.",
"View full profile": "Voir le profil complet"
} }

View file

@ -473,6 +473,16 @@
<div v-else-if="group" class="public-container"> <div v-else-if="group" class="public-container">
<aside class="group-metadata"> <aside class="group-metadata">
<div class="sticky"> <div class="sticky">
<b-message v-if="group.domain && !isCurrentActorAGroupMember">
{{
$t(
"This profile is from another instance, the informations shown here may be incomplete."
)
}}
<a :href="group.url" rel="noopener noreferrer external">{{
$t("View full profile")
}}</a>
</b-message>
<event-metadata-block :title="$t('Members')" icon="account-group"> <event-metadata-block :title="$t('Members')" icon="account-group">
{{ {{
$tc("{count} members", group.members.total, { $tc("{count} members", group.members.total, {