[fix] tags in events

This commit is contained in:
les 2019-10-26 00:35:33 +02:00
parent 15a697f94d
commit ac11467f54
2 changed files with 6 additions and 4 deletions

View file

@ -1,10 +1,12 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
### unreleased ### 0.15.6
- [fix] tags in event
### 0.15.5
- [model] migrations setup - [model] migrations setup
- [feat] embeddable event widget/iframe - [feat] embeddable event widget/iframe
### 0.15.2 ### 0.15.2
- [fix] delete event - [fix] delete event
- [fix] wrong html hierarchy - [fix] wrong html hierarchy

View file

@ -24,7 +24,7 @@
hr hr
pre(v-html='$options.filters.linkify(event.description)') pre(v-html='$options.filters.linkify(event.description)')
el-tag.mr-1.mb-1(v-for='tag in event.tags' el-tag.mr-1.mb-1(v-for='tag in event.tags'
size='mini' :key='tag.tag') {{tag.tag}} size='mini' :key='tag') {{tag}}
//- info & actions for desktop //- info & actions for desktop
el-col.d-none.d-lg-block(:md='6') el-col.d-none.d-lg-block(:md='6')
@ -78,7 +78,7 @@ export default {
head () { head () {
if (!this.event) { return {} } if (!this.event) { return {} }
const tags_feed = this.event.tags.map(tag => ({ rel: 'alternate', type: 'application/rss+xml', const tags_feed = this.event.tags.map(tag => ({ rel: 'alternate', type: 'application/rss+xml',
title: `${this.settings.title} events tagged ${tag.tag}`, href: this.settings.baseurl + `/feed/rss?tags=${tag.tag}` })) title: `${this.settings.title} events tagged ${tag}`, href: this.settings.baseurl + `/feed/rss?tags=${tag}` }))
const place_feed = { rel: 'alternate', type: 'application/rss+xml', const place_feed = { rel: 'alternate', type: 'application/rss+xml',
title: `${this.settings.title} events @${this.event.place.name}`, href: this.settings.baseurl + `/feed/rss?places=${this.event.placeId}` } title: `${this.settings.title} events @${this.event.place.name}`, href: this.settings.baseurl + `/feed/rss?places=${this.event.placeId}` }