Verified Commit c77af3ed authored by Jonatan Zint's avatar Jonatan Zint
Browse files

improved timelines for spaces

parent ce96dc09
Pipeline #1259 passed with stages
in 45 seconds
......@@ -2,20 +2,18 @@
.space
q-timeline(color="secondary")
q-timeline-entry(heading="") {{ roomName }}
q-timeline-entry(v-for="day in GET_DAYS_FOR_ROOM(roomName)", :key="day.date", :title="dateToWeekday(day.date)", :name="dateToWeekday(day.date)")
.timeline-item(v-for="event in day.events")
.timeline-badge
img(:src="frabLink(event.logo)", v-if="event.logo")
i(v-if="!event.logo") alarm
.timeline-title
router-link(:to="{ name: 'event', params: { id: event.id }}") {{ timeFromDate(event.date) }} - {{ event.title }}
.card
.card-content {{ event.abstract }}
template(v-for="day in GET_DAYS_FOR_ROOM(roomName)")
q-timeline-entry(heading='') {{ dateToWeekday(day.date) }}
q-timeline-entry(v-for="event in day.events", :key="event.id" :subtitle="timeFromDate(event.date)" :title="event.title", :avatar="frabLink(event.logo)")
div {{ event.abstract }}
br
router-link.link(:to="{ name: 'event', params: { id: event.id }}") more...
</template>
<style lang="stylus" scoped>
.space
padding 1vh
overflow auto
</style>
......@@ -44,8 +42,9 @@ export default {
return moment(date).format("DD.MM.YYYY");
},
frabLink(link) {
if (!link) return;
return urljoin(process.env.FRAB_URL, link);
}
}
};
</script>
</script>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment