mirror of
https://github.com/glanceapp/glance.git
synced 2024-11-29 11:55:05 +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
18 lines
670 B
HTML
18 lines
670 B
HTML
{{ template "widget-base.html" . }}
|
|
|
|
{{ define "widget-content" }}
|
|
<ul class="list list-gap-14 collapsible-container" data-collapse-after="{{ .CollapseAfter }}">
|
|
{{ range .Items }}
|
|
<li>
|
|
<a class="size-title-dynamic color-primary-if-not-visited" href="{{ .Link }}" target="_blank" rel="noreferrer">{{ .Title }}</a>
|
|
<ul class="list-horizontal-text">
|
|
<li {{ dynamicRelativeTimeAttrs .PublishedAt }}></li>
|
|
{{ if gt (len $.FeedRequests) 1 }}
|
|
<li><a href="{{ .ChannelURL }}" target="_blank" rel="noreferrer">{{ .ChannelName }}</a></li>
|
|
{{ end }}
|
|
</ul>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|