Преглед изворни кода

sidebar options - Talks for Events, Alpha charset

tags/1.0.0^2^2
Alej пре 3 година
родитељ
комит
7fab1a7f24
1 измењених фајлова са 35 додато и 20 уклоњено
  1. 35
    20
      vue-theme/src/components/sidebars/sidebar.vue

+ 35
- 20
vue-theme/src/components/sidebars/sidebar.vue Прегледај датотеку

@@ -5,25 +5,28 @@ aside.sidebar
5 5
         .shadow(v-if="shouldShowListSort.includes(type) && layout !== 'single'")
6 6
             h3.t-up sort {{ type }}
7 7
             ul.t-up
8
-                li(v-for="option in sortOptions")
9
-                    router-link(:to="`/${type}/sorted/${sortTypes[option]}`")
10
-                        p {{ option }}
11
-                
12 8
                 li 
13 9
                     //- ?type=articles //
14 10
                     router-link(v-if="type === 'post' " :to="`/${type}?type=articles`")
15
-                        p articles
11
+                        p in the news
16 12
                 li 
17 13
                     //- ?type=releases //
18 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 24
                 li
25 25
                     router-link(v-if="shouldShowDateSort.includes(type) " :to="`/${type}/sorted/by-current-and-upcoming`")
26 26
                         p by current and upcoming
27
+                li
28
+                    router-link(:to="`/${type}/sorted/by-date`")
29
+                        p by all
27 30
         
28 31
         //- if {{type}} has sorted by-material show material options
29 32
         .shadow(v-if="shouldShowMaterialSort.includes(type) && layout !== 'single'")
@@ -38,10 +41,10 @@ aside.sidebar
38 41
         .shadow(v-if="['artist'].includes(type) && layout !== 'single'")
39 42
             h3.t-up {{ type }} alpha 
40 43
             ul.t-up
41
-                li
44
+                li.f-row.start.wrap
42 45
                     template(v-for="charaSet in charaSets") 
43 46
                         router-link(:to="`/${type}/sorted/by-alpha#${charaSet[0]}`")
44
-                            p {{ charaSet }}
47
+                            p.alpha {{ charaSet }}
45 48
 
46 49
         //- p2p types and related posts
47 50
         .shadow(v-if="layout === 'single' && Object.keys(related).length" v-for="p2pPostType in Object.keys(related)")
@@ -100,13 +103,15 @@ export default {
100 103
                 'by artist': `${sortTypes.artist}`,     //:2
101 104
                 'by episode': `${sortTypes.episode}`,   //:3
102 105
                 'by type': `${sortTypes.subtype}`,      //:4
103
-                'by articles': `articles`,              //:5
106
+                // 'by articles': `articles`,              //:5
104 107
                 subtype: 'by-type',
105 108
             },
106 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 116
             materials: materials,
112 117
             shouldShowListSort: [
@@ -115,7 +120,7 @@ export default {
115 120
                 'publication', 'technique', 'post'
116 121
             ],
117 122
             shouldShowMaterialSort: [
118
-                'artist', 'exhibition',
123
+                'artist', 'exhibition', 'event',
119 124
                 'short', 'guide', 'object',
120 125
                 'technique',
121 126
             ],
@@ -140,18 +145,26 @@ export default {
140 145
                         Object.keys(this.sortTypes)[0],
141 146
                         Object.keys(this.sortTypes)[3],
142 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 151
                     break
146 152
                 case 'exhibition':
147 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 163
                     break
151 164
                 case 'post':
152 165
                     opts = [
153 166
                         Object.keys(this.sortTypes)[4],
154
-                        `by ${this.type} type`,
167
+                        // `by ${this.type} type`,
155 168
                         // Object.keys(this.sortTypes)[5],
156 169
                         // `by articles`
157 170
                     ]
@@ -221,6 +234,8 @@ aside.sidebar
221 234
             img
222 235
                 display: none
223 236
                 padding: $ms-0 0 $ms--4 0
237
+            p.alpha 
238
+                padding: 0 $ms--4
224 239
 
225 240
     .shadow
226 241
         background-color: white

Loading…
Откажи
Сачувај