diff --git a/webapp/components/ContributionForm/ContributionForm.vue b/webapp/components/ContributionForm/ContributionForm.vue index d1184153a..d26862960 100644 --- a/webapp/components/ContributionForm/ContributionForm.vue +++ b/webapp/components/ContributionForm/ContributionForm.vue @@ -30,6 +30,30 @@ + + + + {{ formData.title.length }}/{{ formSchema.title.max }} + + + + + {{ contentLength }} + + + +
{{ formData.eventStart }} @@ -101,28 +125,7 @@ Online Event
- - - - {{ formData.title.length }}/{{ formSchema.title.max }} - - - - - {{ contentLength }} - - + { query Post($id: ID!) { Post(id: $id) { postType + eventStart + eventVenue + eventLocationName ...post ...postCounts ...tagsCategoriesAndPinned @@ -68,6 +71,9 @@ export const filterPosts = (i18n) => { query Post($filter: _PostFilter, $first: Int, $offset: Int, $orderBy: [_PostOrdering]) { Post(filter: $filter, first: $first, offset: $offset, orderBy: $orderBy) { postType + eventStart + eventVenue + eventLocationName ...post ...postCounts ...tagsCategoriesAndPinned @@ -106,6 +112,9 @@ export const profilePagePosts = (i18n) => { ) { profilePagePosts(filter: $filter, first: $first, offset: $offset, orderBy: $orderBy) { postType + eventStart + eventVenue + eventLocationName ...post ...postCounts ...tagsCategoriesAndPinned diff --git a/webapp/locales/de.json b/webapp/locales/de.json index 353212a78..7ef2f0fcd 100644 --- a/webapp/locales/de.json +++ b/webapp/locales/de.json @@ -723,6 +723,12 @@ "title": "In der Gruppe „{name}“" }, "title": "Beitrag" + }, + "viewEvent": { + "forGroup": { + "title": "In der Gruppe „{name}“" + }, + "title": "Event" } }, "profile": { diff --git a/webapp/locales/en.json b/webapp/locales/en.json index aca124b49..1fdb5c7ac 100644 --- a/webapp/locales/en.json +++ b/webapp/locales/en.json @@ -723,6 +723,9 @@ "title": "In The Group “{name}”" }, "title": "Post" + }, + "viewEvent": { + "title": "Event" } }, "profile": { diff --git a/webapp/pages/post/_id/_slug/index.vue b/webapp/pages/post/_id/_slug/index.vue index 6e104bc53..499bfff26 100644 --- a/webapp/pages/post/_id/_slug/index.vue +++ b/webapp/pages/post/_id/_slug/index.vue @@ -2,7 +2,7 @@
- {{ $t('post.viewPost.title') }} + {{ heading }} {{ $t('post.viewPost.forGroup.title', { name: post.group.name }) }} @@ -56,6 +56,14 @@

{{ post.title }}

+ + + + Start: {{ post.eventStart }} + Location: {{ post.eventLocationName }} + Ort: {{ post.eventVenue }} + +
@@ -174,7 +182,7 @@ export default { data() { return { links, - post: null, + post: {postType: ['Article']}, ready: false, title: 'loading', showNewCommentForm: true, @@ -218,6 +226,10 @@ export default { }, ] }, + heading() { + if (this.post.postType[0] === 'Event') return this.$t('post.viewEvent.title') + return this.$t('post.viewPost.title') + }, menuModalsData() { return postMenuModalsData( // "this.post" may not always be defined at the beginning …