mirror of
https://github.com/thelounge/thelounge
synced 2024-12-13 06:02:31 +00:00
a13c08a45b
This has the benefit of not adding `.preview` divs everywhere, anytime we use `parse()`, and also to un-tie the position of the preview blocks from the result of the helper. This means that templates that call `parse` and have some extra markup after that are not constrained anymore. This is effectively an alternative, better way to fix https://github.com/thelounge/lounge/issues/1343, but the initial fix that was put in place (https://github.com/thelounge/lounge/pull/1347) is still relevant, for example to make sure a preview stays hidden (and does not add extra margin/padding/etc.) if the link does not prefetch.
6 lines
156 B
Smarty
6 lines
156 B
Smarty
{{> ../user_name nick=from}}
|
|
<span class="action-text">{{{parse text}}}</span>
|
|
|
|
{{#each links}}
|
|
<div class="preview" data-url="{{this}}"></div>
|
|
{{/each}}
|