From c660bd8eb416c3baf86942691bf8e3059b9ccb34 Mon Sep 17 00:00:00 2001 From: lesion Date: Sat, 18 Jun 2022 01:09:25 +0200 Subject: [PATCH] place pages on /place/:name --- components/Event.vue | 2 +- components/admin/Places.vue | 2 +- pages/{p => place}/_place.vue | 16 ++++++++++++++-- 3 files changed, 16 insertions(+), 4 deletions(-) rename pages/{p => place}/_place.vue (58%) diff --git a/components/Event.vue b/components/Event.vue index 43863be1..3f5f58ef 100644 --- a/components/Event.vue +++ b/components/Event.vue @@ -8,7 +8,7 @@ v-card-text.body.pt-0.pb-0 time.dt-start.subtitle-1(:datetime='event.start_datetime|unixFormat("YYYY-MM-DD HH:mm")' itemprop="startDate" :content="event.start_datetime|unixFormat('YYYY-MM-DDTHH:mm')") {{ event|when }} .d-none.dt-end(itemprop="endDate" :content="event.end_datetime|unixFormat('YYYY-MM-DDTHH:mm')") {{event.end_datetime|unixFormat('YYYY-MM-DD HH:mm')}} - nuxt-link.place.d-block.p-location.pl-0(text color='primary' :to='`/p/${event.place.name}`' itemprop="location" :content="event.place.name") {{event.place.name}} + nuxt-link.place.d-block.p-location.pl-0(text color='primary' :to='`/place/${event.place.name}`' itemprop="location" :content="event.place.name") {{event.place.name}} .d-none(itemprop='location.address') {{event.place.address}} v-card-actions.pt-0.actions.justify-space-between diff --git a/components/admin/Places.vue b/components/admin/Places.vue index 47629cd2..4e9b0d14 100644 --- a/components/admin/Places.vue +++ b/components/admin/Places.vue @@ -41,7 +41,7 @@ v-container template(v-slot:item.actions='{item}') v-btn(@click='editPlace(item)' color='primary' icon) v-icon(v-text='mdiPencil') - nuxt-link(:to='`/p/${item.name}`') + nuxt-link(:to='`/place/${item.name}`') v-icon(v-text='mdiEye') diff --git a/pages/p/_place.vue b/pages/place/_place.vue similarity index 58% rename from pages/p/_place.vue rename to pages/place/_place.vue index 57779cf7..c9d201f8 100644 --- a/pages/p/_place.vue +++ b/pages/place/_place.vue @@ -11,15 +11,27 @@