Show images for annotations that have them.
This commit is contained in:
parent
31cb6ce98a
commit
6b1df07621
|
@ -1,7 +1,13 @@
|
||||||
<div id="annotations">
|
<div id="annotations">
|
||||||
{{#each annotation in view.annotations}}
|
{{#each annotation in view.annotations}}
|
||||||
<div class="annotation">
|
<div class="annotation">
|
||||||
<a {{bindAttr href="annotation.url"}}>{{annotation.providerName}}</a>:
|
<a {{bindAttr href="annotation.url"}}>
|
||||||
|
{{#if annotation.image}}
|
||||||
|
<img {{bindAttr src="annotation.image.url" alt="annotation.image.alt"}}>
|
||||||
|
{{else}}
|
||||||
|
{{annotation.providerName}}
|
||||||
|
{{/if}}
|
||||||
|
</a>:
|
||||||
{{annotation.description}}
|
{{annotation.description}}
|
||||||
</div>
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
a
|
a
|
||||||
text-decoration: underline
|
text-decoration: underline
|
||||||
|
|
||||||
|
img
|
||||||
|
border: none
|
||||||
|
|
||||||
.annotation
|
.annotation
|
||||||
float: left
|
float: left
|
||||||
min-height: 25px
|
min-height: 25px
|
||||||
|
|
Loading…
Reference in New Issue
Block a user