diff --git a/webapp/graphql/PostQuery.js b/webapp/graphql/PostQuery.js
index 38c90e438..478291c82 100644
--- a/webapp/graphql/PostQuery.js
+++ b/webapp/graphql/PostQuery.js
@@ -39,6 +39,11 @@ export default (i18n) => {
...locationAndBadges
}
}
+ group {
+ id
+ name
+ slug
+ }
}
}
`
diff --git a/webapp/locales/de.json b/webapp/locales/de.json
index 69a1e08b0..d0a4d14f0 100644
--- a/webapp/locales/de.json
+++ b/webapp/locales/de.json
@@ -612,6 +612,12 @@
"title": "Erstelle einen neuen Beitrag"
},
"edited": "bearbeitet",
+ "editPost": {
+ "forGroup": {
+ "title": "Für die Gruppe „{name}“"
+ },
+ "title": "Bearbeite deinen Beitrag"
+ },
"menu": {
"delete": "Beitrag löschen",
"edit": "Beitrag bearbeiten",
@@ -624,6 +630,12 @@
"pinned": "Meldung",
"takeAction": {
"name": "Aktiv werden"
+ },
+ "viewPost": {
+ "forGroup": {
+ "title": "In der Gruppe „{name}“"
+ },
+ "title": "Beitrag"
}
},
"profile": {
diff --git a/webapp/locales/en.json b/webapp/locales/en.json
index 01c4a1b67..bfc825b90 100644
--- a/webapp/locales/en.json
+++ b/webapp/locales/en.json
@@ -612,6 +612,12 @@
"title": "Create A New Post"
},
"edited": "edited",
+ "editPost": {
+ "forGroup": {
+ "title": "For The Group “{name}”"
+ },
+ "title": "Edit Your Post"
+ },
"menu": {
"delete": "Delete post",
"edit": "Edit post",
@@ -624,6 +630,12 @@
"pinned": "Announcement",
"takeAction": {
"name": "Take action"
+ },
+ "viewPost": {
+ "forGroup": {
+ "title": "In The Group “{name}”"
+ },
+ "title": "Post"
}
},
"profile": {
diff --git a/webapp/pages/post/_id.vue b/webapp/pages/post/_id.vue
index 14cc65a4e..c50ccc303 100644
--- a/webapp/pages/post/_id.vue
+++ b/webapp/pages/post/_id.vue
@@ -1,16 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
diff --git a/webapp/pages/post/_id/_slug/index.vue b/webapp/pages/post/_id/_slug/index.vue
index 724704f67..0516ec510 100644
--- a/webapp/pages/post/_id/_slug/index.vue
+++ b/webapp/pages/post/_id/_slug/index.vue
@@ -1,107 +1,129 @@
-
-
-
-
-
-
-
- {{ post.title }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ {{ $t('post.viewPost.title') }}
+
+ {{ $t('post.viewPost.forGroup.title', { name: post.group.name }) }}
+
-
-
-
-
-
-
- {{ $t('settings.blocked-users.explanation.commenting-disabled') }}
-
- {{ $t('settings.blocked-users.explanation.commenting-explanation') }}
-
- {{ $t('site.faq') }}
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ {{ post.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('settings.blocked-users.explanation.commenting-disabled') }}
+
+ {{ $t('settings.blocked-users.explanation.commenting-explanation') }}
+
+ {{ $t('site.faq') }}
+
+
+
+
+
+
+
+
+
+
@@ -167,6 +189,31 @@ export default {
}, 50)
},
computed: {
+ routes() {
+ const { slug, id } = this.$route.params
+ return [
+ {
+ name: this.$t('common.post', null, 1),
+ path: `/post/${id}/${slug}`,
+ children: [
+ {
+ name: this.$t('common.comment', null, 2),
+ path: `/post/${id}/${slug}#comments`,
+ },
+ // TODO implement
+ /* {
+ name: this.$t('common.letsTalk'),
+ path: `/post/${id}/${slug}#lets-talk`
+ }, */
+ // TODO implement
+ /* {
+ name: this.$t('common.versus'),
+ path: `/post/${id}/${slug}#versus`
+ } */
+ ],
+ },
+ ]
+ },
menuModalsData() {
return postMenuModalsData(
// "this.post" may not always be defined at the beginning …
@@ -266,6 +313,11 @@ export default {
}