mirror of
https://github.com/glanceapp/glance.git
synced 2024-12-11 09:43:44 +01:00
22 lines
1.1 KiB
HTML
22 lines
1.1 KiB
HTML
|
{{ template "widget-base.html" . }}
|
||
|
|
||
|
{{ define "widget-content" }}
|
||
|
<ul class="list list-gap-14 list-collapsible">
|
||
|
{{ range $i, $release := .Releases }}
|
||
|
<li {{ if shouldCollapse $i $.CollapseAfter }}class="list-collapsible-item" style="--animation-delay: {{ itemAnimationDelay $i $.CollapseAfter }};"{{ end }}>
|
||
|
<a class="size-h4 block text-truncate color-primary-if-not-visited" href="{{ $release.NotesUrl }}" target="_blank" rel="noreferrer">{{ .Name }}</a>
|
||
|
<ul class="list-horizontal-text">
|
||
|
<li title="{{ $release.TimeReleased | formatTime }}" {{ dynamicRelativeTimeAttrs $release.TimeReleased }}>{{ $release.TimeReleased | relativeTime }}</li>
|
||
|
<li>{{ $release.Version }}</li>
|
||
|
{{ if gt $release.Downvotes 3 }}
|
||
|
<li>{{ $release.Downvotes | formatNumber }} ⚠</li>
|
||
|
{{ end }}
|
||
|
</ul>
|
||
|
</li>
|
||
|
{{ end }}
|
||
|
</ul>
|
||
|
{{ if gt (len .Releases) $.CollapseAfter }}
|
||
|
<label class="list-collapsible-label"><input type="checkbox" autocomplete="off" class="list-collapsible-input"></label>
|
||
|
{{ end }}
|
||
|
{{ end }}
|