mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
minor on tag page
This commit is contained in:
parent
585156f301
commit
9f8f705aa8
1 changed files with 8 additions and 5 deletions
|
@ -1,10 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<v-container id='home' class='pa-0 pa-sm-2' fluid>
|
<v-container id='home' fluid>
|
||||||
<v-btn text color='primary' to='/'><v-icon v-text='mdiChevronLeft'/> Home</v-btn><h2 class='d-inline'>{{$t('event.tag_description')}} <u>{{tag}}</u></h2>
|
<div class="mt-3 mb-1 ml-1">
|
||||||
|
<v-btn text color='primary' to='/'><v-icon v-text='mdiChevronLeft'/></v-btn>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h1 class='d-block text-h3 font-weight-black text-center align-center text-uppercase mt-5 mb-16 mx-auto w-100 text-underline'><u>{{tag}}</u></h1>
|
||||||
|
|
||||||
<!-- Events -->
|
<!-- Events -->
|
||||||
<!-- .mb-2.mt-1.pl-1.pl-sm-2 -->
|
<div class="mb-2 mt-1 pl-1 pl-sm-2" id="events">
|
||||||
<div id="events">
|
|
||||||
<Event :event='event' v-for='(event, idx) in events' :lazy='idx>2' :key='event.id'></Event>
|
<Event :event='event' v-for='(event, idx) in events' :lazy='idx>2' :key='event.id'></Event>
|
||||||
</div>
|
</div>
|
||||||
</v-container>
|
</v-container>
|
||||||
|
@ -23,7 +26,7 @@ export default {
|
||||||
async asyncData ({ $axios, params, error }) {
|
async asyncData ({ $axios, params, error }) {
|
||||||
try {
|
try {
|
||||||
const tag = params.tag
|
const tag = params.tag
|
||||||
const events = await $axios.$get(`/events?tags=${params.tag}`)
|
const events = await $axios.$get(`/events?tags=${tag}`)
|
||||||
return { events, tag }
|
return { events, tag }
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
error({ statusCode: 400, message: 'Error!' })
|
error({ statusCode: 400, message: 'Error!' })
|
||||||
|
|
Loading…
Reference in a new issue