Explorar el Código

sidebar - added sort by links

tags/0.9.0
Alej hace 4 años
padre
commit
966f3ebf66
Se han modificado 1 ficheros con 9 adiciones y 2 borrados
  1. 9
    2
      vue-theme/src/components/sidebars/sidebar.vue

+ 9
- 2
vue-theme/src/components/sidebars/sidebar.vue Ver fichero

11
                 //- temporary reminder
11
                 //- temporary reminder
12
                 template(v-if="['exhibition', 'event'].includes(type) && layout === 'list'")
12
                 template(v-if="['exhibition', 'event'].includes(type) && layout === 'list'")
13
                     p 
13
                     p 
14
-                        router-link(:to="`/${type}/sorted/by-date`")
14
+                        router-link(:to="`/${type}/`")
15
                             p by all
15
                             p by all
16
                     p 
16
                     p 
17
                         router-link(:to="`/${type}/sorted/by-current-and-upcoming`")
17
                         router-link(:to="`/${type}/sorted/by-current-and-upcoming`")
18
                             p by current and upcoming
18
                             p by current and upcoming
19
                 template(v-if="['short', 'guide', 'publication', 'technique', 'post'].includes(type) && layout === 'list'")
19
                 template(v-if="['short', 'guide', 'publication', 'technique', 'post'].includes(type) && layout === 'list'")
20
                     p 
20
                     p 
21
-                        router-link(:to="`/${type}/sorted/by-date`")
21
+                        router-link(:to="`/${type}`")
22
                             p by all
22
                             p by all
23
 
23
 
24
         //- p2p types and related posts
24
         //- p2p types and related posts
107
                 case 'short':
107
                 case 'short':
108
                     opts = [
108
                     opts = [
109
                         Object.keys(this.sortTypes)[2],
109
                         Object.keys(this.sortTypes)[2],
110
+                        Object.keys(this.sortTypes)[1],
110
                         Object.keys(this.sortTypes)[3],
111
                         Object.keys(this.sortTypes)[3],
111
                     ]
112
                     ]
112
                     break
113
                     break
126
                         Object.keys(this.sortTypes)[1],
127
                         Object.keys(this.sortTypes)[1],
127
                     ]
128
                     ]
128
                     break
129
                     break
130
+                case 'technique':
131
+                    opts = [
132
+                        Object.keys(this.sortTypes)[1],
133
+                        Object.keys(this.sortTypes)[3],
134
+                    ]
135
+                    break
129
             }
136
             }
130
             return opts
137
             return opts
131
         },
138
         },

Loading…
Cancelar
Guardar