mirror of
https://github.com/glanceapp/glance.git
synced 2024-11-30 04:15:35 +01:00
21 lines
633 B
HTML
21 lines
633 B
HTML
{{ template "widget-base.html" . }}
|
|
|
|
{{ define "widget-content-classes" }}widget-content-frameless{{ end }}
|
|
|
|
{{ define "widget-content" }}
|
|
<div class="widget-group-header">
|
|
<div class="widget-header gap-20">
|
|
{{ range $i, $widget := .Widgets }}
|
|
<button class="widget-group-title{{ if eq $i 0 }} widget-group-title-current{{ end }}">{{ $widget.Title }}</button>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="widget-group-contents">
|
|
{{ range $i, $widget := .Widgets }}
|
|
<div class="widget-group-content{{ if eq $i 0 }} widget-group-content-current{{ end }}">{{ .Render }}</div>
|
|
{{ end }}
|
|
</div>
|
|
|
|
{{ end }}
|