Improve group public page display when there's no description/events/posts
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
974620b3b3
commit
87ee0e156c
|
@ -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."
|
||||
}
|
||||
|
|
|
@ -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 n’est 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."
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue