Fix: Should display by default / fix image src property

This commit is contained in:
winkidney
2019-03-20 15:56:41 +08:00
committed by Isaac Bythewood
parent a4ecb0c66f
commit d6e63c19c3
2 changed files with 4 additions and 4 deletions

View File

@@ -1,9 +1,10 @@
{% verbatim %}
<script id="lightbox-template" type="text/x-template">
<transition name="fade">
<div class="lightbox-background">
<div class="lightbox-wrapper">
<div class="lightbox-image-wrapper">
<img class="lightbox-image" src="{{ pin.image.image }}" />
<img class="lightbox-image" :src="pin.image.image" />
</div>
<div class="lightbox-data clearfix">
<div class="description" v-if="pin.description">
@@ -14,7 +15,7 @@
</div>
<div class="text pull-left">
<span class="dim">pinned by</span> {{ pin.submitter.username }}
<template v-if="pin.tags">
<template v-if="pin.tags.length != 0">
<br /><span class="dim">in</span>
<template v-for="tag in pin.tags">
<span class="tag">
@@ -33,5 +34,6 @@
</div>
</div>
</div>
</transition>
</script>
{% endverbatim %}