From 5b37bd2493578a39825480ee966a8ee946740479 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 22 Oct 2020 10:48:49 +0200 Subject: [PATCH] Improve group dashboard for members without moderator rights Signed-off-by: Thomas Citharel --- js/src/components/Group/GroupSection.vue | 2 + js/src/i18n/en_US.json | 5 +- js/src/i18n/fr_FR.json | 4 +- js/src/views/Event/GroupEvents.vue | 21 ++- js/src/views/Group/Group.vue | 2 + js/src/views/Posts/Edit.vue | 198 +++++++++++++---------- js/src/views/Posts/List.vue | 11 +- 7 files changed, 148 insertions(+), 95 deletions(-) diff --git a/js/src/components/Group/GroupSection.vue b/js/src/components/Group/GroupSection.vue index de4c305f4..def1f06f7 100644 --- a/js/src/components/Group/GroupSection.vue +++ b/js/src/components/Group/GroupSection.vue @@ -37,6 +37,7 @@ section { flex-direction: column; margin-bottom: 2rem; border: 2px solid $violet; + min-height: 30vh; .create-slot { display: flex; @@ -48,6 +49,7 @@ section { .main-slot { min-height: 5rem; padding: 5px; + flex: 1; } } diff --git a/js/src/i18n/en_US.json b/js/src/i18n/en_US.json index fcd5c58ef..5100658a4 100644 --- a/js/src/i18n/en_US.json +++ b/js/src/i18n/en_US.json @@ -731,7 +731,6 @@ "Create to-do lists for all the tasks you need to do, assign them and set due dates.": "Create to-do lists for all the tasks you need to do, assign them and set due dates.", "A place to store links to documents or resources of any type.": "A place to store links to documents or resources of any type.", "{group}'s events": "{group}'s events", - "When someone from the group creates an event and attributes it to the group, it will show up here.": "When someone from the group creates an event and attributes it to the group, it will show up here.", "View all": "View all", "+ Start a discussion": "+ Start a discussion", "+ Add a resource": "+ Add a resource", @@ -815,5 +814,7 @@ "An ethical alternative": "An ethical alternative", "Ethical alternative to Facebook events, groups and pages, Mobilizon is a tool designed to serve you. Period.": "Ethical alternative to Facebook events, groups and pages, Mobilizon is a tool designed to serve you. Period.", "A federated software": "A federated software", - "Mobilizon is not a giant platform, but a multitude of interconnected Mobilizon websites.": "Mobilizon is not a giant platform, but a multitude of interconnected Mobilizon websites." + "Mobilizon is not a giant platform, but a multitude of interconnected Mobilizon websites.": "Mobilizon is not a giant platform, but a multitude of interconnected Mobilizon websites.", + "When a moderator from the group creates an event and attributes it to the group, it will show up here.": "When a moderator from the group creates an event and attributes it to the group, it will show up here.", + "Only group moderators can create, edit and delete posts.": "Only group moderators can create, edit and delete posts." } diff --git a/js/src/i18n/fr_FR.json b/js/src/i18n/fr_FR.json index 15cf6c38b..b46db8cfd 100644 --- a/js/src/i18n/fr_FR.json +++ b/js/src/i18n/fr_FR.json @@ -867,5 +867,7 @@ "An ethical alternative": "Une alternative éthique", "Ethical alternative to Facebook events, groups and pages, Mobilizon is a tool designed to serve you. Period.": "Alternative éthique aux événements, groupes et pages Facebook, Mobilizon est un outil conçu pour vous servir. Point.", "A federated software": "Un logiciel fédéré", - "Mobilizon is not a giant platform, but a multitude of interconnected Mobilizon websites.": "Mobilizon n’est pas une plateforme géante, mais une multitude de sites web Mobilizon interconnectés." + "Mobilizon is not a giant platform, but a multitude of interconnected Mobilizon websites.": "Mobilizon n’est pas une plateforme géante, mais une multitude de sites web Mobilizon interconnectés.", + "When a moderator from the group creates an event and attributes it to the group, it will show up here.": "Lorsqu'un·e modérateur·ice du groupe crée un événement et l'attribue au groupe, il s'affichera ici.", + "Only group moderators can create, edit and delete posts.": "Seul·es les modérateur·ices du groupe peuvent créer, éditer et supprimer des billets." } diff --git a/js/src/views/Event/GroupEvents.vue b/js/src/views/Event/GroupEvents.vue index 13248b764..a839b6252 100644 --- a/js/src/views/Event/GroupEvents.vue +++ b/js/src/views/Event/GroupEvents.vue @@ -29,10 +29,18 @@

{{ $t( - "When someone from the group creates an event and attributes it to the group, it will show up here." + "When a moderator from the group creates an event and attributes it to the group, it will show up here." ) }}

+ {{ $t("+ Create an event") }}
@@ -58,12 +66,14 @@ + diff --git a/js/src/views/Group/Group.vue b/js/src/views/Group/Group.vue index 05ae51bf8..083c72b06 100644 --- a/js/src/views/Group/Group.vue +++ b/js/src/views/Group/Group.vue @@ -231,6 +231,7 @@