2017-06-26 09:01:55 +00:00
|
|
|
{{#preview}}
|
2017-07-12 06:55:41 +00:00
|
|
|
<div class="toggle-content toggle-type-{{type}}{{#if shown}} show{{/if}}">
|
2017-06-26 09:01:55 +00:00
|
|
|
{{#equal type "image"}}
|
2017-07-12 06:55:41 +00:00
|
|
|
<a class="toggle-thumbnail" href="{{link}}" target="_blank" rel="noopener">
|
2017-12-29 10:06:18 +00:00
|
|
|
<img src="{{thumb}}" decoding="async" alt="">
|
2017-07-12 06:55:41 +00:00
|
|
|
</a>
|
2017-12-09 23:25:01 +00:00
|
|
|
{{/equal}}
|
|
|
|
{{#equal type "audio"}}
|
|
|
|
<audio controls preload="metadata">
|
2017-12-14 11:14:45 +00:00
|
|
|
<source src="{{media}}" type="{{mediaType}}">
|
2017-12-09 23:25:01 +00:00
|
|
|
Your browser does not support the audio element.
|
|
|
|
</audio>
|
|
|
|
{{/equal}}
|
|
|
|
{{#equal type "video"}}
|
2017-12-14 11:12:22 +00:00
|
|
|
<video preload="metadata" controls>
|
2017-12-14 11:14:45 +00:00
|
|
|
<source src="{{media}}" type="{{mediaType}}">
|
2017-12-09 23:25:01 +00:00
|
|
|
Your browser does not support the video element.
|
|
|
|
</video>
|
|
|
|
{{/equal}}
|
|
|
|
{{#equal type "link"}}
|
|
|
|
{{#if thumb}}
|
|
|
|
<a class="toggle-thumbnail" href="{{link}}" target="_blank" rel="noopener">
|
2017-12-29 10:06:18 +00:00
|
|
|
<img src="{{thumb}}" decoding="async" alt="" class="thumb">
|
2017-07-12 06:55:41 +00:00
|
|
|
</a>
|
2017-12-09 23:25:01 +00:00
|
|
|
{{/if}}
|
2018-03-22 05:17:44 +00:00
|
|
|
<div class="toggle-text">
|
|
|
|
<div class="head">
|
|
|
|
<div class="overflowable">
|
|
|
|
<a href="{{link}}" target="_blank" rel="noopener" title="{{head}}">
|
|
|
|
{{head}}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<button class="more"
|
|
|
|
aria-expanded="false"
|
|
|
|
aria-label="More"
|
|
|
|
data-closed-text="More"
|
|
|
|
data-opened-text="Less"
|
|
|
|
>
|
|
|
|
<span class="more-caret"></span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="body overflowable">
|
|
|
|
<a href="{{link}}" target="_blank" rel="noopener" title="{{body}}">
|
|
|
|
{{body}}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
2017-06-26 09:01:55 +00:00
|
|
|
{{/equal}}
|
2017-12-28 16:28:49 +00:00
|
|
|
{{#equal type "error"}}
|
2017-12-28 21:31:19 +00:00
|
|
|
{{#equal error "image-too-big"}}
|
|
|
|
<em>
|
|
|
|
This image is larger than {{friendlysize maxSize}} and cannot be
|
|
|
|
previewed.
|
|
|
|
<a href="{{link}}" target="_blank" rel="noopener">Click here</a>
|
|
|
|
to open it in a new window.
|
|
|
|
</em>
|
|
|
|
{{/equal}}
|
2018-02-05 08:46:05 +00:00
|
|
|
{{#equal error "message"}}
|
2018-03-22 05:17:44 +00:00
|
|
|
<div>
|
|
|
|
<em>
|
|
|
|
A preview could not be loaded.
|
|
|
|
<a href="{{link}}" target="_blank" rel="noopener">Click here</a>
|
|
|
|
to open it in a new window.
|
|
|
|
</em>
|
|
|
|
<br>
|
|
|
|
<pre class="prefetch-error">{{message}}</pre>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<button class="more"
|
|
|
|
aria-expanded="false"
|
|
|
|
aria-label="More"
|
|
|
|
data-closed-text="More"
|
|
|
|
data-opened-text="Less"
|
|
|
|
>
|
|
|
|
<span class="more-caret"></span>
|
|
|
|
</button>
|
2018-02-05 08:46:05 +00:00
|
|
|
{{/equal}}
|
2017-12-28 16:28:49 +00:00
|
|
|
{{/equal}}
|
2017-07-12 06:55:41 +00:00
|
|
|
</div>
|
2017-06-26 09:01:55 +00:00
|
|
|
{{/preview}}
|