From 2e67c423db7d53082fb23cde0fbe8a8ad6da2bd3 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 1 Oct 2020 15:57:07 +0200 Subject: [PATCH] Fix group event list Signed-off-by: Thomas Citharel --- js/src/components/Event/EventListViewCard.vue | 10 ++++--- js/src/components/Post/PostElementItem.vue | 5 +++- js/src/graphql/group.ts | 6 ++++ js/src/i18n/en_US.json | 4 ++- js/src/i18n/fr_FR.json | 4 ++- js/src/types/event.model.ts | 1 + js/src/views/Event/EventList.vue | 4 +-- js/src/views/Event/GroupEvents.vue | 29 +++++++++++++++++-- js/src/views/Group/Group.vue | 15 +++++++++- js/src/views/Posts/List.vue | 3 +- 10 files changed, 67 insertions(+), 14 deletions(-) diff --git a/js/src/components/Event/EventListViewCard.vue b/js/src/components/Event/EventListViewCard.vue index aed279d58..be744e239 100644 --- a/js/src/components/Event/EventListViewCard.vue +++ b/js/src/components/Event/EventListViewCard.vue @@ -14,10 +14,11 @@ {{ event.physicalAddress.locality }} - - - {{ $t("Organized by {name}", { name: usernameWithDomain(event.organizerActor) }) }} - + + {{ $t("Created by {name}", { name: usernameWithDomain(event.organizerActor) }) }} + + + {{ $t("Organized by {name}", { name: usernameWithDomain(event.organizerActor) }) }}
@@ -65,6 +66,7 @@ const defaultOptions: IEventCardOptions = { loggedPerson: false, hideDetails: false, organizerActor: null, + memberofGroup: false, }; @Component({ diff --git a/js/src/components/Post/PostElementItem.vue b/js/src/components/Post/PostElementItem.vue index 6a76998c7..79c1a26f4 100644 --- a/js/src/components/Post/PostElementItem.vue +++ b/js/src/components/Post/PostElementItem.vue @@ -15,7 +15,10 @@

{{ post.title }}

{{ $t("No public upcoming events") }} @@ -295,6 +301,13 @@ {{ $t("Latest posts") }}
+ {{ $t("View all posts") }}

{{ $t("No posts yet") }}

diff --git a/js/src/views/Posts/List.vue b/js/src/views/Posts/List.vue index 9d36a297d..30d515820 100644 --- a/js/src/views/Posts/List.vue +++ b/js/src/views/Posts/List.vue @@ -28,7 +28,7 @@
-

+

{{ $t( "A place to publish something to the whole world, your community or just your group members." @@ -36,6 +36,7 @@ }}