mirror of
				https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
				synced 2025-10-29 17:15:31 +00:00 
			
		
		
		
	Renamed some files, more CSS
This commit is contained in:
		
							
								
								
									
										31
									
								
								views/routes/ausgabe/body.gohtml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								views/routes/ausgabe/body.gohtml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,31 @@ | ||||
| {{ $model := .model }} | ||||
| {{ $date := .model.Datum.When }} | ||||
| <div> | ||||
| 	<a href="/{{- $date.Year -}}"> | ||||
| 		Zum Jahr | ||||
| 		{{ $date.Year }} | ||||
| 	</a> | ||||
|  | ||||
| 	<div class="flex flex-row gap-x-2"> | ||||
| 		{{ if $model.Prev }} | ||||
| 			<a href="/{{- $model.Prev.Datum.When.Year -}}/{{- $model.Prev.Number.No -}}"> | ||||
| 				← Zurück | ||||
| 			</a> | ||||
| 		{{ end }} | ||||
|  | ||||
| 		{{ if $model.Next }} | ||||
| 			<a href="/{{- $model.Next.Datum.When.Year -}}/{{- $model.Next.Number.No -}}"> | ||||
| 				Weiter → | ||||
| 			</a> | ||||
| 		{{ end }} | ||||
| 	</div> | ||||
| </div> | ||||
|  | ||||
| <div> | ||||
| 	<div class="py-3 text-xl"> | ||||
| 		<div>{{ $date.Year }}</div> | ||||
| 		<div>Stück {{ $model.Number.No }}</div> | ||||
| 		<div>{{ WeekdayName $date.Weekday }}, {{ $date.Day }}. {{ MonthName $date.Month }}</div> | ||||
| 	</div> | ||||
| 	{{ template "_inhaltsverzeichnis" . }} | ||||
| </div> | ||||
							
								
								
									
										96
									
								
								views/routes/ausgabe/components/_inhaltsverzeichnis.gohtml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										96
									
								
								views/routes/ausgabe/components/_inhaltsverzeichnis.gohtml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,96 @@ | ||||
| {{ $model := .model }} | ||||
|  | ||||
|  | ||||
| <div class="max-w-[22rem] bg-slate-100 px-6 py-4 hyphens-auto"> | ||||
| 	{{- if $model.Pieces.Pages -}} | ||||
| 		<div> | ||||
| 			{{ range  $page := $model.Pieces.Pages }} | ||||
| 				<div class="pt-4 first:pt-0 hyphens-auto"> | ||||
| 					<div class="font-bold">Seite {{ $page }}</div> | ||||
| 					<ul class=""> | ||||
| 						{{ range $piece := (index $model.Pieces.Items $page) }} | ||||
| 							<li class="ml-0"> | ||||
| 								{{ template "_inhaltsverzeichnis_eintrag" $piece }} | ||||
|  | ||||
|  | ||||
| 								<!-- Links zu anderen Teilen: --> | ||||
| 								{{ if gt (len $piece.IssueRefs) 1 }} | ||||
| 									<div> | ||||
| 										{{ len $piece.IssueRefs }} Teile: | ||||
| 										<div> | ||||
| 											{{ range $issue := $piece.IssueRefs }} | ||||
| 												<li> | ||||
| 													<a | ||||
| 														href="/{{- $issue.When -}}/{{- $issue.Nr -}}" | ||||
| 														{{- if and (eq $issue.Nr $model.Number.No) (eq $issue.When.Year | ||||
| 															$model.Datum.When.Year) | ||||
| 														-}} | ||||
| 															aria-current="page" | ||||
| 														{{ end }}> | ||||
| 														{{- $issue.When.Year }} Nr. | ||||
| 														{{ $issue.Nr -}} | ||||
| 													</a> | ||||
| 												</li> | ||||
| 											{{ end }} | ||||
| 										</div> | ||||
| 									</div> | ||||
| 								{{ end }} | ||||
| 							</li> | ||||
| 						{{ end }} | ||||
|  | ||||
|  | ||||
| 						<!-- Pages end --> | ||||
| 					</ul> | ||||
| 				</div> | ||||
| 			{{- end -}} | ||||
| 		</div> | ||||
| 	{{- end -}} | ||||
|  | ||||
|  | ||||
| 	<!-- Beilagen --> | ||||
| 	{{- if $model.AdditionalPieces.Pages -}} | ||||
| 		<div class="mt-8"> | ||||
| 			<div>Beilage</div> | ||||
| 			{{ range  $page := $model.AdditionalPieces.Pages }} | ||||
| 				<div class="pt-4 first:pt-0 "> | ||||
| 					<div class="">Seite {{ $page }}</div> | ||||
| 					<ul class="list-disc list-inside"> | ||||
| 						{{ range $piece := (index $model.AdditionalPieces.Items $page) }} | ||||
| 							<li class="ml-0"> | ||||
| 								{{ template "_inhaltsverzeichnis_eintrag" $piece }} | ||||
|  | ||||
|  | ||||
| 								<!-- Links zu anderen Teilen: --> | ||||
| 								{{ if gt (len $piece.IssueRefs) 1 }} | ||||
| 									<div> | ||||
| 										{{ len $piece.IssueRefs }} Teile: | ||||
| 										<div> | ||||
| 											{{ range $issue := $piece.IssueRefs }} | ||||
| 												<li> | ||||
| 													<a | ||||
| 														href="/{{- $issue.When -}}/{{- $issue.Nr -}}" | ||||
| 														{{- if and (eq $issue.Nr $model.Number.No) (eq $issue.When.Year | ||||
| 															$model.Datum.When.Year) | ||||
| 														-}} | ||||
| 															aria-current="page" | ||||
| 														{{ end }}> | ||||
| 														{{- $issue.When.Year }} Nr. | ||||
| 														{{ $issue.Nr -}} | ||||
| 													</a> | ||||
| 												</li> | ||||
| 											{{ end }} | ||||
| 										</div> | ||||
| 									</div> | ||||
| 								{{ end }} | ||||
| 							</li> | ||||
| 						{{ end }} | ||||
|  | ||||
|  | ||||
| 						<!-- Pages end --> | ||||
| 					</ul> | ||||
| 				</div> | ||||
| 			{{- end -}} | ||||
| 		</div> | ||||
| 	{{- end -}} | ||||
|  | ||||
| </div> | ||||
| @@ -0,0 +1,79 @@ | ||||
| {{ $piece := . }} | ||||
|  | ||||
|  | ||||
| <!-- Autor(en) --> | ||||
| {{ if $piece.AgentRefs }} | ||||
| 	<div class="authors"> | ||||
| 		{{ range $agentref := $piece.AgentRefs }} | ||||
| 			{{ if (or (eq $agentref.Category "") (eq $agentref.Category "autor")) }} | ||||
| 				{{ $agent := GetAgent $agentref.Ref }} | ||||
| 				{{- if gt (len $agent.Names) 0 -}} | ||||
| 					<a href="/akteure/{{ $agentref.Ref }}" class="inline-block"> | ||||
| 						{{- index $agent.Names 0 -}} | ||||
| 					</a> | ||||
| 				{{ end }} | ||||
| 			{{ end }} | ||||
| 		{{ end }} | ||||
| 	</div> | ||||
| {{ end }} | ||||
|  | ||||
|  | ||||
| <!-- Kategorien --> | ||||
| <div class=""> | ||||
| 	<!-- Einzelkategorien --> | ||||
| 	{{ if $piece.CategoryRefs }} | ||||
| 		{{ range $catref := $piece.CategoryRefs }} | ||||
| 			{{ $category := GetCategory $catref.Ref }} | ||||
| 			{{- if gt (len $category.Names) 0 -}} | ||||
| 				<div class="category inline-block">{{- index $category.Names 0 -}}</div> | ||||
| 			{{ end }} | ||||
| 		{{ end }} | ||||
| 	{{ end }} | ||||
|  | ||||
| 	{{- if $piece.Title -}} | ||||
| 		<div class="">{{- index $piece.Title 0 -}}</div> | ||||
| 	{{- else if $piece.Incipit -}} | ||||
| 		<div class="">{{- index $piece.Incipit 0 -}}</div> | ||||
| 	{{- end -}} | ||||
|  | ||||
| 	{{- if $piece.PlaceRefs -}} | ||||
| 		{{ $place := GetPlace (index $piece.PlaceRefs 0).Ref }} | ||||
| 		{{- if gt (len $place.Names) 0 -}} | ||||
| 			<div class="">{{- index $place.Names 0 -}}</div> | ||||
| 		{{- end -}} | ||||
| 	{{- end -}} | ||||
|  | ||||
|  | ||||
| 	<!-- Kategorie Werk --> | ||||
| 	{{ if $piece.WorkRefs }} | ||||
| 		{{ range $workref := $piece.WorkRefs }} | ||||
| 			{{ $work := GetWork $workref.Ref }} | ||||
| 			<!-- What we do depends on the category --> | ||||
| 			{{- $kat := $workref.Category }} | ||||
| 			{{- if not $kat }} | ||||
| 				{{- $kat = "rezension" -}} | ||||
| 			{{- end -}} | ||||
|  | ||||
| 			{{- $category := GetCategory $kat -}} | ||||
| 			{{- if gt (len $category.Names) 0 -}} | ||||
| 				<div class="category inline-block">{{- index $category.Names 0 -}}</div> | ||||
| 			{{- end -}} | ||||
|  | ||||
| 			{{- if $work.PreferredTitle -}} | ||||
| 				<div class="">{{- $work.PreferredTitle -}}</div> | ||||
| 			{{- else if $work.Citation.Title -}} | ||||
| 				<div class="">{{- $work.Citation.Title -}}</div> | ||||
| 			{{- else -}} | ||||
| 				<div class="">{{- $work.Citation.Chardata -}}</div> | ||||
| 			{{- end -}} | ||||
|  | ||||
| 		{{- end -}} | ||||
| 	{{- end -}} | ||||
| </div> | ||||
|  | ||||
| <!-- Notizen --> | ||||
| {{ range $annotation := $piece.AnnotationNote.Annotations }} | ||||
| 	<div class="italic"> | ||||
| 		{{ $annotation.Inner.InnerXML }} | ||||
| 	</div> | ||||
| {{ end }} | ||||
							
								
								
									
										1
									
								
								views/routes/ausgabe/head.gohtml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								views/routes/ausgabe/head.gohtml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <title>KGPZ – Ausgabe {{ .model.Number.No }} / {{ .model.Year }}</title> | ||||
		Reference in New Issue
	
	Block a user
	 Simon Martens
					Simon Martens