dorfylegends/backend/templates/years.html

25 lines
532 B
HTML
Raw Permalink Normal View History

2022-05-07 23:19:30 +03:00
{{template "layout.html" .}}
{{define "title"}}Years{{end}}
{{define "content"}}
<h3>Years</h3>
<div class="row">
<div class="col-md-3">
<ul>
{{ $c := 0}}
{{ range $y, $e := . }}
{{ $c = add $c 1 }}
{{ if breakYearColumn $c (len $) }}
</ul>
</div>
<div class="col-md-3">
<ul>
{{end}}
2022-05-09 18:20:31 +03:00
<li><a href="./year/{{ $y }}">Year {{ $y }}</a> ({{len $e}} events)</li>
2022-05-07 23:19:30 +03:00
{{ end }}
</ul>
</div>
</div>
{{- end }}