2024-04-27 21:10:24 +02:00
|
|
|
{{ template "widget-base.html" . }}
|
|
|
|
|
|
|
|
{{ define "widget-content" }}
|
2024-05-17 13:15:44 +02:00
|
|
|
<ul class="list list-gap-10 collapsible-container" data-collapse-after="{{ .CollapseAfter }}">
|
2024-04-27 21:10:24 +02:00
|
|
|
{{ range $i, $release := .Releases }}
|
2024-05-17 13:15:44 +02:00
|
|
|
<li>
|
2024-04-27 21:10:24 +02:00
|
|
|
<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">
|
2024-05-16 21:41:50 +02:00
|
|
|
<li {{ dynamicRelativeTimeAttrs $release.TimeReleased }}></li>
|
2024-04-27 21:10:24 +02:00
|
|
|
<li>{{ $release.Version }}</li>
|
|
|
|
{{ if gt $release.Downvotes 3 }}
|
|
|
|
<li>{{ $release.Downvotes | formatNumber }} ⚠</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ end }}
|