mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 17:15:31 +00:00
BUGFIX: render issues index page
This commit is contained in:
@@ -5,21 +5,21 @@
|
||||
{{ range $index, $month := .model.Issues }}
|
||||
<!-- Month Header -->
|
||||
{{ $first := index $month 0 }}
|
||||
<h2>{{ MonthNameShort $first.Month }}</h2>
|
||||
<h2>{{ (MonthName $first.Datum.When.Month).Short }}</h2>
|
||||
|
||||
<!-- Issues -->
|
||||
{{ range $issue := $month }}
|
||||
{{ $date := GetDate $issue.Datum.When.String }}
|
||||
{{ $date := $issue.Datum.When }}
|
||||
<a href="/{{ $y }}/{{ $issue.Number.No }}">
|
||||
<div>
|
||||
{{ $issue.Number.No }}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
{{ $date.Wd }}
|
||||
{{ (WeekdayName $date.Weekday).Short }}
|
||||
</div>
|
||||
|
||||
<div>{{ $date.DayNo }}.{{ index $date.MonthNo }}.</div>
|
||||
<div>{{ $date.Day }}.{{ index $date.Month }}.</div>
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user