Procházet zdrojové kódy

exhibition/event sidebar display condition

tags/0.9.0
Alej před 4 roky
rodič
revize
ffbc9d5dc3
1 změnil soubory, kde provedl 18 přidání a 1 odebrání
  1. 18
    1
      vue-theme/src/components/sidebars/sidebar.vue

+ 18
- 1
vue-theme/src/components/sidebars/sidebar.vue Zobrazit soubor

@@ -1,18 +1,35 @@
1 1
 <template lang="pug">
2 2
 aside.sidebar
3 3
     section
4
-        //- single layout Artist sorting
4
+        //- if not single layout Artist sorting
5 5
         .shadow(v-if="type === 'artists' && layout !== 'single'")
6 6
             h3.t-up sort {{ type }} by
7 7
             ul.t-up
8 8
                 li(v-for="option in sortOptions")
9 9
                     router-link(:to="`/${type}/${sortTypes[option]}`")
10 10
                         p {{ option }}
11
+
11 12
         
12 13
         //- type specific sidebar
13 14
         .shadow(v-else)
14 15
             h3.t-up.t-b {{ type }} specific sidebar more
15 16
 
17
+        //- if not single layout Exhibitions sorting
18
+        .shadow(v-if="type === 'exhibitions' && layout !== 'single'")
19
+            h3.t-up sort {{ type }} by
20
+            ul.t-up
21
+                li(v-for="option in sortOptions")
22
+                    router-link(:to="`/${type}/${sortTypes[option]}`")
23
+                        p {{ option }}
24
+
25
+        //- if not single layout Events sorting
26
+        .shadow(v-if="type === 'events' && layout === 'list'")
27
+            h3.t-up sort {{ type }} by
28
+            ul.t-up
29
+                li(v-for="option in sortOptions")
30
+                    router-link(:to="`/${type}/${sortTypes[option]}`")
31
+                        p {{ option }}
32
+
16 33
         //- p2p types and related posts
17 34
         .shadow(v-if="layout === 'single' && Object.keys(related).length" v-for="p2pPostType in Object.keys(related)")
18 35
             related-sidebar(:posts-by-type="related" :post-type="p2pPostType")

Načítá se…
Zrušit
Uložit