File tree Expand file tree Collapse file tree 1 file changed +27
-23
lines changed Expand file tree Collapse file tree 1 file changed +27
-23
lines changed Original file line number Diff line number Diff line change 12
12
<template v-if =" photos .length == 0 " >
13
13
<br >
14
14
<h3 >Galleria vuota!</h3 >
15
- </template >
16
- <template v-else >
17
- <v-card >
18
- <v-container grid-list-sm fluid >
19
- <v-layout row wrap >
20
- <v-flex v-for =" n in photos.length" :key =" n" xs3 d-flex >
21
- <v-card flat tile class =" d-flex" >
22
- <v-layout column >
23
- <div class =" subheading" >{{ photos[n-1].name }} <v-btn v-on:click =" deletePhoto(photos[n-1].name)" flat icon color =" red lighten-2" >
24
- <v-icon >delete</v-icon >
25
- </v-btn >
26
- </div >
15
+ </template >
16
+ <template v-else >
17
+ <v-card >
18
+ <v-container grid-list-sm fluid >
19
+ <v-layout row wrap >
20
+ <v-flex v-for =" n in photos.length" :key =" n" xs3 d-flex >
21
+ <v-card flat tile class =" d-flex" >
22
+ <v-layout column >
23
+ <div class =" subheading" >{{ photos[n-1].name }} <v-btn v-on:click =" deletePhoto(photos[n-1].name)" flat icon color =" red lighten-2" >
24
+ <v-icon >delete</v-icon >
25
+ </v-btn >
26
+ </div >
27
+ <a :href =" CBv1+'/photos/'+photos[n-1].name" target =" _blank" >
27
28
<v-img :src =" CBv1+'/photos/'+photos[n-1].name" aspect-ratio =" 1" class =" grey lighten-2" >
28
29
<v-layout slot =" placeholder" fill-height align-center justify-center ma-0 >
29
30
<v-progress-circular indeterminate color =" grey lighten-5" ></v-progress-circular >
30
31
</v-layout >
31
32
</v-img >
32
- </v-layout >
33
- </v-card >
34
- </v-flex >
35
- </v-layout >
36
- </v-container >
37
- </v-card >
38
- </template >
33
+ </a >
34
+ </v-layout >
35
+ </v-card >
36
+ </v-flex >
37
+ </v-layout >
38
+ </v-container >
39
+ </v-card >
40
+ </template >
39
41
</v-flex >
40
42
</v-layout >
41
43
</v-content >
@@ -86,11 +88,13 @@ export default {
86
88
87
89
</script >
88
90
<style scoped>
89
- .v-card {
91
+ .v-card {
90
92
margin : 10px ;
91
93
}
92
- .container {
94
+
95
+ .container {
93
96
padding-top : 0px ;
94
- margin-top :0px ;
97
+ margin-top : 0px ;
95
98
}
96
- </style >
99
+
100
+ </style >
You can’t perform that action at this time.
0 commit comments