2024-04-27 21:10:24 +02:00
|
|
|
{{ template "widget-base.html" . }}
|
|
|
|
|
|
|
|
{{ define "widget-content" }}
|
2024-05-06 17:53:24 +02:00
|
|
|
<ul class="list list-gap-10 list-collapsible">
|
2024-04-27 21:10:24 +02:00
|
|
|
{{ 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 }}
|