Merge branch 'improve-group-public-page' into 'master'

Improve group public page display when there's no description/events/posts

See merge request framasoft/mobilizon!652
This commit is contained in:
Thomas Citharel 2020-10-26 10:19:31 +01:00
commit 5e64276a78
3 changed files with 11 additions and 4 deletions

View File

@ -816,5 +816,6 @@
"A federated software": "A federated software",
"Mobilizon is not a giant platform, but a <b>multitude of interconnected Mobilizon websites</b>.": "Mobilizon is not a giant platform, but a <b>multitude of interconnected Mobilizon websites</b>.",
"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."
"Only group moderators can create, edit and delete posts.": "Only group moderators can create, edit and delete posts.",
"This group doesn't have a description yet.": "This group doesn't have a description yet."
}

View File

@ -869,5 +869,6 @@
"A federated software": "Un logiciel fédéré",
"Mobilizon is not a giant platform, but a <b>multitude of interconnected Mobilizon websites</b>.": "Mobilizon nest pas une plateforme géante, mais une <b>multitude de sites web Mobilizon interconnectés</b>.",
"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."
"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.",
"This group doesn't have a description yet.": "Ce groupe n'a pas encore de description."
}

View File

@ -278,7 +278,10 @@
<div v-else class="public-container">
<section>
<subtitle>{{ $t("About") }}</subtitle>
<div v-html="group.summary" />
<div v-html="group.summary" v-if="group.summary && group.summary !== '<p></p>'" />
<div v-else-if="group" class="content has-text-grey has-text-centered">
<p>{{ $t("This group doesn't have a description yet.") }}</p>
</div>
</section>
<section>
<subtitle>{{ $t("Upcoming events") }}</subtitle>
@ -297,7 +300,9 @@
>{{ $t("View all upcoming events") }}</router-link
>
</div>
<span v-else-if="group">{{ $t("No public upcoming events") }}</span>
<div v-else-if="group" class="content has-text-grey has-text-centered">
<p>{{ $t("No public upcoming events") }}</p>
</div>
<b-skeleton animated v-else></b-skeleton>
</section>
<section>