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