|
|
@@ -1,49 +1,21 @@
|
|
1
|
1
|
<template lang="pug">
|
|
2
|
2
|
aside.sidebar
|
|
3
|
3
|
section
|
|
4
|
|
- //- if not single layout Artist sorting
|
|
5
|
|
- .shadow(v-if="type === 'artist' && layout !== 'single'")
|
|
6
|
|
- h3.t-up sort {{ type }} by
|
|
7
|
|
- ul.t-up
|
|
8
|
|
- li(v-for="option in sortOptions")
|
|
9
|
|
- router-link(:to="`/${type}/sorted/${sortTypes[option]}`")
|
|
10
|
|
- p {{ option }}
|
|
11
|
|
-
|
|
12
|
|
-
|
|
13
|
|
- //- type specific sidebar
|
|
14
|
|
- .shadow(v-else)
|
|
15
|
|
- h3.t-up.t-b {{ type }} specific sidebar more
|
|
16
|
|
-
|
|
17
|
|
- //- if not single layout Exhibitions sorting
|
|
18
|
|
- .shadow(v-if="type === 'exhibition' && layout !== 'single'")
|
|
|
4
|
+ //- if not single layout with sorting
|
|
|
5
|
+ .shadow(v-if="['artist', 'exhibition', 'event', 'post'].includes(type) && layout !== 'single'")
|
|
19
|
6
|
h3.t-up sort {{ type }} by
|
|
20
|
7
|
ul.t-up
|
|
21
|
8
|
li(v-for="option in sortOptions")
|
|
22
|
9
|
router-link(:to="`/${type}/sorted/${sortTypes[option]}`")
|
|
23
|
10
|
p {{ option }}
|
|
24
|
11
|
//- temporary reminder
|
|
25
|
|
- p
|
|
26
|
|
- router-link(:to="`/exhibition/sorted/by-date`")
|
|
27
|
|
- p by all
|
|
28
|
|
- p
|
|
29
|
|
- router-link(:to="`/exhibition/sorted/by-current-and-upcoming`")
|
|
30
|
|
- p by current and upcoming
|
|
31
|
|
-
|
|
32
|
|
- //- if not single layout Events sorting
|
|
33
|
|
- .shadow(v-if="type === 'event' && layout === 'list'")
|
|
34
|
|
- h3.t-up sort {{ type }} by
|
|
35
|
|
- ul.t-up
|
|
36
|
|
- li(v-for="option in sortOptions")
|
|
37
|
|
- router-link(:to="`/${type}/sorted/${sortTypes[option]}`")
|
|
38
|
|
- p {{ option }}
|
|
39
|
|
- //- temporary reminder
|
|
40
|
|
- p
|
|
41
|
|
- router-link(:to="`/event/sorted/by-date`")
|
|
42
|
|
- p by all
|
|
43
|
|
- p
|
|
44
|
|
- router-link(:to="`/event/sorted/by-current-and-upcoming`")
|
|
45
|
|
- p by current and upcoming
|
|
46
|
|
-
|
|
|
12
|
+ template(v-if="['exhibition', 'event'].includes(type) && layout === 'list'")
|
|
|
13
|
+ p
|
|
|
14
|
+ router-link(:to="`/${type}/sorted/by-date`")
|
|
|
15
|
+ p by all
|
|
|
16
|
+ p
|
|
|
17
|
+ router-link(:to="`/${type}/sorted/by-current-and-upcoming`")
|
|
|
18
|
+ p by current and upcoming
|
|
47
|
19
|
|
|
48
|
20
|
//- p2p types and related posts
|
|
49
|
21
|
.shadow(v-if="layout === 'single' && Object.keys(related).length" v-for="p2pPostType in Object.keys(related)")
|
|
|
@@ -60,11 +32,6 @@ aside.sidebar
|
|
60
|
32
|
exhibitions-sidebar
|
|
61
|
33
|
//- single layout Post sidebar
|
|
62
|
34
|
.shadow(v-if="type === 'post'")
|
|
63
|
|
- h3.t-up sort {{ type }} by
|
|
64
|
|
- ul.t-up
|
|
65
|
|
- li(v-for="option in sortOptions")
|
|
66
|
|
- router-link(:to="`/${type}/sorted/${sortTypes[option]}`")
|
|
67
|
|
- p {{ option }}
|
|
68
|
35
|
exhibitions-sidebar
|
|
69
|
36
|
br
|
|
70
|
37
|
events-sidebar
|