File tree Expand file tree Collapse file tree 3 files changed +17
-32
lines changed
frontend/src/component/photo/view Expand file tree Collapse file tree 3 files changed +17
-32
lines changed Original file line number Diff line number Diff line change 6060 <i :title =" $gettext('Taken')" class =" mdi mdi-calendar-range" />
6161 {{ m.getDateString(true) }}
6262 </button >
63- <button
64- v-if =" m.CameraID > 1 || m.Iso"
65- class =" meta-camera action-camera-edit text-truncate"
66- >
63+ <button v-if =" m.CameraID > 1 || m.Iso" class =" meta-camera action-camera-edit text-truncate" >
6764 <i class =" mdi" :class =" m.Type === 'video' ? 'mdi-video-vintage' : 'mdi-camera'" />
6865 {{ m.getCameraInfo() }}
6966 </button >
70- <button
71- v-if =" m.LensID > 1 || m.FocalLength"
72- class =" meta-lens action-lens-edit text-truncate"
73- >
67+ <button v-if =" m.LensID > 1 || m.FocalLength" class =" meta-lens action-lens-edit text-truncate" >
7468 <i class =" mdi mdi-camera-iris" />
7569 {{ m.getLensInfo() }}
7670 </button >
149143 class =" action-vector mdi mdi-vector-polyline"
150144 :title =" $gettext('Vector')"
151145 ></i >
146+ <i
147+ v-else-if =" m.Type === 'document'"
148+ class =" action-document mdi mdi-file-pdf-box"
149+ :title =" $gettext('Document')"
150+ />
152151 <i
153152 v-else-if =" m.Type === 'image' && !selectMode"
154153 class =" mdi mdi-camera-burst"
244243 {{ m.Caption }}
245244 </button >
246245 <div class =" meta-details" >
247- <button
248- v-if =" m.Year > 0"
249- class =" action-open-date meta-date text-truncate"
250- @click.exact =" openDate(index)"
251- >
246+ <button v-if =" m.Year > 0" class =" action-open-date meta-date text-truncate" @click.exact =" openDate(index)" >
252247 <i :title =" $gettext('Taken')" class =" mdi mdi-calendar-range" />
253248 {{ m.getDateString(true) }}
254249 </button >
Original file line number Diff line number Diff line change 8282 @click.stop.prevent =" openPhoto(index, false)"
8383 >
8484 <i v-if =" m.Type === 'live'" class =" action-live" :title =" $gettext('Live')" ><icon-live-photo /></i >
85- <i v-if =" m.Type === 'animated'" class =" mdi mdi-file-gif-box" :title =" $gettext('Animated')" />
86- <i
87- v-if =" m.Type === 'vector'"
88- class =" action-vector mdi mdi-vector-polyline"
89- :title =" $gettext('Vector')"
90- ></i >
91- <i v-if =" m.Type === 'video'" class =" mdi mdi-play" :title =" $gettext('Video')" />
85+ <i v-else-if =" m.Type === 'animated'" class =" mdi mdi-file-gif-box" :title =" $gettext('Animated')" />
86+ <i v-else-if =" m.Type === 'video'" class =" mdi mdi-play" :title =" $gettext('Video')" />
9287 </button >
9388 </div >
9489 </td >
133128 class =" input-favorite"
134129 @click.stop.prevent =" m.toggleLike()"
135130 >
136- <v-icon
137- v-if =" m.Favorite"
138- icon =" mdi-star"
139- color =" favorite"
140- class =" favorite-on"
141- ></v-icon >
142- <v-icon
143- v-else
144- icon =" mdi-star-outline"
145- color =" surface"
146- class =" favorite-off"
147- ></v-icon >
131+ <v-icon v-if =" m.Favorite" icon =" mdi-star" color =" favorite" class =" favorite-on" ></v-icon >
132+ <v-icon v-else icon =" mdi-star-outline" color =" surface" class =" favorite-off" ></v-icon >
148133 </v-btn >
149134 </template >
150135 </div >
Original file line number Diff line number Diff line change 9090 class =" action-vector mdi mdi-vector-polyline"
9191 :title =" $gettext('Vector')"
9292 ></i >
93+ <i
94+ v-else-if =" m.Type === 'document'"
95+ class =" action-document mdi mdi-file-pdf-box"
96+ :title =" $gettext('Document')"
97+ />
9398 <i
9499 v-else-if =" m.Type === 'image' && !selectMode"
95100 class =" mdi mdi-camera-burst"
You can’t perform that action at this time.
0 commit comments