mirror of
https://github.com/thelounge/thelounge
synced 2024-12-11 21:22:35 +00:00
19 lines
604 B
Smarty
19 lines
604 B
Smarty
{{#preview}}
|
|
<div class="toggle-content toggle-type-{{type}}{{#if shown}} show{{/if}}">
|
|
{{#equal type "image"}}
|
|
<a class="toggle-thumbnail" href="{{link}}" target="_blank" rel="noopener">
|
|
<img src="{{thumb}}">
|
|
</a>
|
|
{{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>
|
|
{{/equal}}
|
|
</div>
|
|
{{/preview}}
|