mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 04:23:13 +00:00
ec5b5ef565
This is useful on long preview titles/descriptions that truncate. We currently do the same for topics
18 lines
520 B
Smarty
18 lines
520 B
Smarty
{{#preview}}
|
|
<div>
|
|
<button class="toggle-button" aria-label="Toggle prefetched media"></button>
|
|
</div>
|
|
<a href="{{link}}" target="_blank" rel="noopener" class="toggle-content toggle-type-{{type}}{{#if shown}} show{{/if}}">
|
|
{{#equal type "image"}}
|
|
<img src="{{link}}">
|
|
{{else}}
|
|
{{#if thumb}}
|
|
<img src="{{thumb}}" class="thumb">
|
|
{{/if}}
|
|
<div class="toggle-text">
|
|
<div class="head" title="{{head}}">{{head}}</div>
|
|
<div class="body" title="{{body}}">{{body}}</div>
|
|
</div>
|
|
{{/equal}}
|
|
</a>
|
|
{{/preview}}
|