Markup for the image-file component

This commit is contained in:
Michael Lange 2019-07-02 12:59:57 -07:00
parent 153218183b
commit 29dacd0c2a
1 changed files with 4 additions and 5 deletions

View File

@ -1,12 +1,11 @@
<a href={{src}} target="_blank" rel="noopenner noreferrer">
<a href={{src}} target="_blank" rel="noopenner noreferrer" class="image-file-image">
<img src={{src}} alt={{or alt fileName}} title={{fileName}} onload={{action updateImageMeta}} />
</a>
<figcaption>
<span>
{{fileName}}
<figcaption class="image-file-caption">
<span class="image-file-caption-primary">
<strong>{{fileName}}</strong>
{{#if (and width height)}}
({{width}}px &times; {{height}}{{#if size}}px, {{format-bytes size}}{{/if}})
{{/if}}
</span>
<span>{{src}}</span>
</figcaption>