Parcourir la source

sidebar options - Talks for Events, Alpha charset

tags/1.0.0^2^2
Alej il y a 3 ans
Parent
révision
7fab1a7f24
1 fichiers modifiés avec 35 ajouts et 20 suppressions
  1. 35
    20
      vue-theme/src/components/sidebars/sidebar.vue

+ 35
- 20
vue-theme/src/components/sidebars/sidebar.vue Voir le fichier

5
         .shadow(v-if="shouldShowListSort.includes(type) && layout !== 'single'")
5
         .shadow(v-if="shouldShowListSort.includes(type) && layout !== 'single'")
6
             h3.t-up sort {{ type }}
6
             h3.t-up sort {{ type }}
7
             ul.t-up
7
             ul.t-up
8
-                li(v-for="option in sortOptions")
9
-                    router-link(:to="`/${type}/sorted/${sortTypes[option]}`")
10
-                        p {{ option }}
11
-                
12
                 li 
8
                 li 
13
                     //- ?type=articles //
9
                     //- ?type=articles //
14
                     router-link(v-if="type === 'post' " :to="`/${type}?type=articles`")
10
                     router-link(v-if="type === 'post' " :to="`/${type}?type=articles`")
15
-                        p articles
11
+                        p in the news
16
                 li 
12
                 li 
17
                     //- ?type=releases //
13
                     //- ?type=releases //
18
                     router-link(v-if="type === 'post' " :to="`/${type}?type=releases`")
14
                     router-link(v-if="type === 'post' " :to="`/${type}?type=releases`")
19
-                        //- p {{ option }}
20
-                        p releases 
21
-                li
22
-                    router-link(:to="`/${type}/sorted/by-date`")
23
-                        p by all
15
+                        p press releases 
16
+                li 
17
+                    //- ?type=talks //
18
+                    router-link(v-if="type === 'event' " :to="`/${type}?type=talks`")
19
+                        p talks 
20
+                    //- by type //
21
+                li(v-for="option in sortOptions")
22
+                    router-link(:to="`/${type}/sorted/${sortTypes[option]}`")
23
+                        p {{ option }}
24
                 li
24
                 li
25
                     router-link(v-if="shouldShowDateSort.includes(type) " :to="`/${type}/sorted/by-current-and-upcoming`")
25
                     router-link(v-if="shouldShowDateSort.includes(type) " :to="`/${type}/sorted/by-current-and-upcoming`")
26
                         p by current and upcoming
26
                         p by current and upcoming
27
+                li
28
+                    router-link(:to="`/${type}/sorted/by-date`")
29
+                        p by all
27
         
30
         
28
         //- if {{type}} has sorted by-material show material options
31
         //- if {{type}} has sorted by-material show material options
29
         .shadow(v-if="shouldShowMaterialSort.includes(type) && layout !== 'single'")
32
         .shadow(v-if="shouldShowMaterialSort.includes(type) && layout !== 'single'")
38
         .shadow(v-if="['artist'].includes(type) && layout !== 'single'")
41
         .shadow(v-if="['artist'].includes(type) && layout !== 'single'")
39
             h3.t-up {{ type }} alpha 
42
             h3.t-up {{ type }} alpha 
40
             ul.t-up
43
             ul.t-up
41
-                li
44
+                li.f-row.start.wrap
42
                     template(v-for="charaSet in charaSets") 
45
                     template(v-for="charaSet in charaSets") 
43
                         router-link(:to="`/${type}/sorted/by-alpha#${charaSet[0]}`")
46
                         router-link(:to="`/${type}/sorted/by-alpha#${charaSet[0]}`")
44
-                            p {{ charaSet }}
47
+                            p.alpha {{ charaSet }}
45
 
48
 
46
         //- p2p types and related posts
49
         //- p2p types and related posts
47
         .shadow(v-if="layout === 'single' && Object.keys(related).length" v-for="p2pPostType in Object.keys(related)")
50
         .shadow(v-if="layout === 'single' && Object.keys(related).length" v-for="p2pPostType in Object.keys(related)")
100
                 'by artist': `${sortTypes.artist}`,     //:2
103
                 'by artist': `${sortTypes.artist}`,     //:2
101
                 'by episode': `${sortTypes.episode}`,   //:3
104
                 'by episode': `${sortTypes.episode}`,   //:3
102
                 'by type': `${sortTypes.subtype}`,      //:4
105
                 'by type': `${sortTypes.subtype}`,      //:4
103
-                'by articles': `articles`,              //:5
106
+                // 'by articles': `articles`,              //:5
104
                 subtype: 'by-type',
107
                 subtype: 'by-type',
105
             },
108
             },
106
             charaSets: [
109
             charaSets: [
107
-                '0 a b', 'c d e', 'f g h',
108
-                'i j k', 'l m n', 'o p q',
109
-                'r s t', 'u v w', 'x y z'
110
+                // '0 a b', 'c d e', 'f g h',
111
+                // 'i j k', 'l m n', 'o p q',
112
+                // 'r s t', 'u v w', 'x y z'
113
+                '9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 
114
+                'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'
110
             ],
115
             ],
111
             materials: materials,
116
             materials: materials,
112
             shouldShowListSort: [
117
             shouldShowListSort: [
115
                 'publication', 'technique', 'post'
120
                 'publication', 'technique', 'post'
116
             ],
121
             ],
117
             shouldShowMaterialSort: [
122
             shouldShowMaterialSort: [
118
-                'artist', 'exhibition',
123
+                'artist', 'exhibition', 'event',
119
                 'short', 'guide', 'object',
124
                 'short', 'guide', 'object',
120
                 'technique',
125
                 'technique',
121
             ],
126
             ],
140
                         Object.keys(this.sortTypes)[0],
145
                         Object.keys(this.sortTypes)[0],
141
                         Object.keys(this.sortTypes)[3],
146
                         Object.keys(this.sortTypes)[3],
142
                         Object.keys(this.sortTypes)[1],
147
                         Object.keys(this.sortTypes)[1],
143
-                        `by ${this.type} type`,
148
+                        Object.keys(this.sortTypes)[4],
149
+                        // `by ${this.type} type`,
144
                     ]
150
                     ]
145
                     break
151
                     break
146
                 case 'exhibition':
152
                 case 'exhibition':
147
                     opts = [
153
                     opts = [
148
-                        Object.keys(this.sortTypes)[1],
154
+                        // Object.keys(this.sortTypes)[4],
155
+                        // Object.keys(this.sortTypes)[1],
156
+                    ]
157
+                    break
158
+                case 'event':
159
+                    opts = [
160
+                        // Object.keys(this.sortTypes)[4],
161
+                        // Object.keys(this.sortTypes)[1],
149
                     ]
162
                     ]
150
                     break
163
                     break
151
                 case 'post':
164
                 case 'post':
152
                     opts = [
165
                     opts = [
153
                         Object.keys(this.sortTypes)[4],
166
                         Object.keys(this.sortTypes)[4],
154
-                        `by ${this.type} type`,
167
+                        // `by ${this.type} type`,
155
                         // Object.keys(this.sortTypes)[5],
168
                         // Object.keys(this.sortTypes)[5],
156
                         // `by articles`
169
                         // `by articles`
157
                     ]
170
                     ]
221
             img
234
             img
222
                 display: none
235
                 display: none
223
                 padding: $ms-0 0 $ms--4 0
236
                 padding: $ms-0 0 $ms--4 0
237
+            p.alpha 
238
+                padding: 0 $ms--4
224
 
239
 
225
     .shadow
240
     .shadow
226
         background-color: white
241
         background-color: white

Chargement…
Annuler
Enregistrer