Show images for annotations that have them.

This commit is contained in:
Henrik Hodne 2013-07-11 12:20:49 -07:00
parent 31cb6ce98a
commit 6b1df07621
2 changed files with 10 additions and 1 deletions

View File

@ -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}}

View File

@ -9,6 +9,9 @@
a
text-decoration: underline
img
border: none
.annotation
float: left
min-height: 25px