diff --git a/components/Event.vue b/components/Event.vue
index cb17151a..d4875639 100644
--- a/components/Event.vue
+++ b/components/Event.vue
@@ -1,26 +1,25 @@
- nuxt-link.event(:to='`/event/${event.id}`' :class='{ withImg: event.image_path }')
+ .card.event.mt-1.text-white(body-style='padding: 0px;')
+ nuxt-link(:to='`/event/${event.id}`')
+ img(v-if='showImage && event.image_path' :src='`/media/thumb/${event.image_path}`')
+ .float-right
+ i.text-danger.el-icon-refresh(v-if='event.parentId')
+ .badge.text-info(v-if='settings.enable_resources && event.resources && event.resources.length') {{event.resources.length}}
+ .title {{event.title}}
- //- image
- el-image(v-if='showImage && event.image_path' lazy :src='`/media/thumb/${event.image_path}`')
+ .card-body
+ div
+ i.el-icon-date
+ span {{event|when}}
+ el-button.mt-1.bg-dark.text-warning.float-right(plain size='mini' round type='text' icon='el-icon-location-outline' @click='addPlace') {{event.place.name}}
+ //- date / place
+ .description.mt-3(v-if='!event.image_path || !event.tags.length' v-html='description')
- .event-info
- .content-info
-
- //- title
- h2 {{event.title}}
-
- //- date / place
- .date
- div {{event|when('home')}}
- div {{event.place.name}}
-
- ul.tags(v-if='showTags && event.tags')
- li(v-for='tag in event.tags' :key='tag') {{tag}}
- li(v-if='settings.enable_federation && event.resources && event.resources.length') {{$tc('common.n_resources', event.resources.length)}}
+ .card-footer(v-if='event.tags.length')
+ el-button.ml-1.bg-dark(type='text' plain round size='mini' v-for='tag in event.tags' :key='tag' @click='addTag(tag)') {{tag}}
diff --git a/components/Home.vue b/components/Home.vue
index 247297e5..a0180193 100644
--- a/components/Home.vue
+++ b/components/Home.vue
@@ -8,14 +8,8 @@
.col
Search(past-filter recurrent-filter)
- .row.m-0
- .p-0.col-sm-6.col-lg-4.col-xl-4(v-for='event in events' :key='event.id + event.start_datetime')
- a.d-block.d-sm-none(:id='event.newDay' v-if='event.newDay')
- el-divider {{event.start_datetime|day}}
- Event(
- :id='event.start_datetime'
- :event='event'
- )
+ #events
+ Event(v-for='event in events' :key='event.id' :event='event')
@@ -53,3 +47,10 @@ export default {
}
}
+
diff --git a/components/Search.vue b/components/Search.vue
index 46775551..092398f6 100644
--- a/components/Search.vue
+++ b/components/Search.vue
@@ -19,10 +19,11 @@
span.float-left {{ item.label }}
i.float-right.el-icon-place(v-if='item.type==="place"')
i.float-right.el-icon-collection-tag(v-if='item.type==="tag"')
- br
- el-tag.mr-1(type='success' v-for='f in filter' size='small'
- disable-transitions closable :key='f.type + f.id'
- @close='removeFilter(f)') {{f.label}}
+ #filters
+ el-button.mr-1.bg-dark(type='text' round plain v-for='t in filters.tags' size='mini'
+ :key='t' @click='removeTag(t)') {{t}}
+ el-button.mr-1.bg-dark.text-warning(type='text' round plain v-for='p in selectedPlaces' size='mini'
+ :key='p' @click='removePlace(p.id)') {{p.name}}