mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 17:15:31 +00:00
Changed file extensions + single issue view
This commit is contained in:
@@ -1 +0,0 @@
|
||||
This is a global component
|
||||
25
views/routes/body.gohtml
Normal file
25
views/routes/body.gohtml
Normal file
@@ -0,0 +1,25 @@
|
||||
{{ $y := .model.Year }}
|
||||
{{ range $year := .model.AvailableYears }}
|
||||
<a href="/{{ $year }}" {{ if eq $year $y }}aria-current="page"{{ end }}>{{ $year }}</a>
|
||||
{{ end }}
|
||||
{{ range $index, $month := .model.Issues }}
|
||||
<!-- Month Header -->
|
||||
{{ $first := index $month 0 }}
|
||||
<h2>{{ MonthNameShort $first.Month }}</h2>
|
||||
|
||||
<!-- Issues -->
|
||||
{{ range $issue := $month }}
|
||||
{{ $date := GetDate $issue.Datum.When }}
|
||||
<a href="/{{ $y }}/{{ $issue.Number.No }}">
|
||||
<div>
|
||||
{{ $issue.Number.No }}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
{{ $date.Wd }}
|
||||
</div>
|
||||
|
||||
<div>{{ $date.DayNo }}.{{ index $date.MonthNo }}.</div>
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
@@ -1,29 +0,0 @@
|
||||
{{ define "body" }}
|
||||
{{ $y := .model.Year }}
|
||||
|
||||
{{ range $year := .model.AvailableYears }}
|
||||
<a href="/{{ $year }}" {{ if eq $year $y }}aria-current="page"{{ end }}>{{ $year }}</a>
|
||||
{{ end }}
|
||||
{{ range $index, $month := .model.Issues }}
|
||||
|
||||
<!-- Month Header -->
|
||||
{{ $first := index $month 0 }}
|
||||
<h2>{{ MonthNameShort $first.Month }}</h2>
|
||||
|
||||
<!-- Issues -->
|
||||
{{ range $issue := $month }}
|
||||
{{ $date := GetDate $issue.Datum.When }}
|
||||
<a href="/{{ $y }}/{{ $issue.Number.No }}">
|
||||
<div>
|
||||
{{ $issue.Number.No }}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
{{ $date.Wd }}
|
||||
</div>
|
||||
|
||||
<div>{{ $date.DayNo }}.{{ index $date.MonthNo }}.</div>
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
@@ -1 +0,0 @@
|
||||
This is a global component inside of a components folder.
|
||||
@@ -1,6 +1,11 @@
|
||||
Issue found!
|
||||
{{ $model := .model }}
|
||||
|
||||
<div>
|
||||
<a href="/{{- $model.Year -}}" aria-current="page">
|
||||
Zurück zum Jahr
|
||||
{{ $model.Year }}
|
||||
</a>
|
||||
</div>
|
||||
Issue found!
|
||||
{{ $page := 0 }}
|
||||
{{ range $piece := .model.Pieces.IssuePieces }}
|
||||
<div>
|
||||
@@ -38,5 +43,11 @@ Issue found!
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ range $annotation := $piece.AnnotationNote.Annotations }}
|
||||
<div>
|
||||
{{ $annotation.Inner.InnerXML }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
{{ end }}
|
||||
@@ -1 +0,0 @@
|
||||
This is a test body form test_body
|
||||
@@ -1,5 +0,0 @@
|
||||
This is a test body form test_body_component
|
||||
{{ template "testcomponent" . }}
|
||||
{{ template "testinnercomponent". }}
|
||||
|
||||
{{ template "seperate" }}
|
||||
@@ -1,3 +0,0 @@
|
||||
{{ define "seperate" }}
|
||||
This is a seperately defined component
|
||||
{{ end }}
|
||||
@@ -1 +0,0 @@
|
||||
This is a non-global component inside of a components dir
|
||||
@@ -1 +0,0 @@
|
||||
This is a testcomponent
|
||||
@@ -1,4 +0,0 @@
|
||||
This is a test body form test_body_component
|
||||
{{ template "testcomponent" . }}
|
||||
{{ template "_globalcomp" . }}
|
||||
{{ template "_globalinnercomp" . }}
|
||||
@@ -1 +0,0 @@
|
||||
This is a testcomponent
|
||||
@@ -1 +0,0 @@
|
||||
This is a test body form test_head_body
|
||||
@@ -1,2 +0,0 @@
|
||||
<!-- this is inside the head -->
|
||||
<meta name="hello"/>
|
||||
Reference in New Issue
Block a user