Markup for the image-file component
This commit is contained in:
parent
153218183b
commit
29dacd0c2a
|
@ -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}} />
|
<img src={{src}} alt={{or alt fileName}} title={{fileName}} onload={{action updateImageMeta}} />
|
||||||
</a>
|
</a>
|
||||||
<figcaption>
|
<figcaption class="image-file-caption">
|
||||||
<span>
|
<span class="image-file-caption-primary">
|
||||||
{{fileName}}
|
<strong>{{fileName}}</strong>
|
||||||
{{#if (and width height)}}
|
{{#if (and width height)}}
|
||||||
({{width}}px × {{height}}{{#if size}}px, {{format-bytes size}}{{/if}})
|
({{width}}px × {{height}}{{#if size}}px, {{format-bytes size}}{{/if}})
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</span>
|
</span>
|
||||||
<span>{{src}}</span>
|
|
||||||
</figcaption>
|
</figcaption>
|
Loading…
Reference in a new issue