mirror of
https://github.com/glanceapp/glance.git
synced 2024-11-30 04:15:35 +01:00
b0018c3f06
Make collapsible components reusable Add ability to collapse video rows in videos-grid style Lose sanity while dealing with all the intricacies
19 lines
716 B
HTML
19 lines
716 B
HTML
{{ template "widget-base.html" . }}
|
|
|
|
{{ define "widget-content" }}
|
|
<ul class="list list-gap-10 collapsible-container" data-collapse-after="{{ .CollapseAfter }}">
|
|
{{ range $i, $release := .Releases }}
|
|
<li>
|
|
<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 {{ dynamicRelativeTimeAttrs $release.TimeReleased }}></li>
|
|
<li>{{ $release.Version }}</li>
|
|
{{ if gt $release.Downvotes 3 }}
|
|
<li>{{ $release.Downvotes | formatNumber }} ⚠</li>
|
|
{{ end }}
|
|
</ul>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|