mirror of
https://github.com/glanceapp/glance.git
synced 2024-12-03 05:45:39 +01:00
36f8eac3e4
Delay showing page content until JS has finished setting up page elements That then allows the following: Leave relative time to be rendered on the client Leave collapsible lists to be rendered on the client Which massively simplfies the backend templates which were error prone
13 lines
701 B
HTML
13 lines
701 B
HTML
{{ define "video-card-contents" }}
|
|
<img class="video-thumbnail thumbnail" loading="lazy" src="{{ .ThumbnailUrl }}" alt="">
|
|
<div class="margin-top-10 margin-bottom-widget flex flex-column grow padding-inline-widget">
|
|
<a class="video-title color-primary-if-not-visited" href="{{ .Url }}" target="_blank" rel="noreferrer" title="{{ .Title }}">{{ .Title }}</a>
|
|
<ul class="list-horizontal-text flex-nowrap margin-top-7">
|
|
<li class="shrink-0" {{ dynamicRelativeTimeAttrs .TimePosted }}></li>
|
|
<li class="shrink min-width-0">
|
|
<a class="block text-truncate" href="{{ .AuthorUrl }}" target="_blank" rel="noreferrer">{{ .Author }}</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
{{ end }}
|