hardlounge/client/views/msg_preview.tpl

27 lines
810 B
Smarty
Raw Normal View History

2017-06-26 09:01:55 +00:00
{{#preview}}
<div class="toggle-content toggle-type-{{type}}{{#if shown}} show{{/if}}">
2017-06-26 09:01:55 +00:00
{{#equal type "image"}}
<a class="toggle-thumbnail" href="{{link}}" target="_blank" rel="noopener">
<img src="{{thumb}}">
</a>
2017-06-26 09:01:55 +00:00
{{else}}
2017-12-06 22:27:35 +00:00
{{#equal type "audio"}}
<audio controls preload="metadata">
<source src="{{link}}" type="{{res}}">
Your browser does not support the audio element.
</audio>
{{else}}
{{#if thumb}}
<a class="toggle-thumbnail" href="{{link}}" target="_blank" rel="noopener">
<img src="{{thumb}}" class="thumb">
</a>
{{/if}}
<a class="toggle-text" href="{{link}}" target="_blank" rel="noopener">
<div class="head" title="{{head}}">{{head}}</div>
<div class="body" title="{{body}}">{{body}}</div>
</a>
2017-12-06 22:27:35 +00:00
{{/equal}}
2017-06-26 09:01:55 +00:00
{{/equal}}
</div>
2017-06-26 09:01:55 +00:00
{{/preview}}