mirror of
				https://github.com/Theodor-Springmann-Stiftung/musenalm.git
				synced 2025-11-03 19:55:31 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
{{ $r := index . 0 }}
 | 
						|
{{ $entries := index .	1 }}
 | 
						|
{{ $relations := index . 2 }}
 | 
						|
{{ $showidseries := index . 3 }}
 | 
						|
{{ $marka := index . 4 }}
 | 
						|
{{ $markr := index . 5 }}
 | 
						|
 | 
						|
{{ $bds := index $relations $r.Id }}
 | 
						|
 | 
						|
 | 
						|
<div class="flex flex-col lg:flex-row mb-4">
 | 
						|
	<div class="grow-0 shrink-0 w-[12rem] flex flex-col">
 | 
						|
		{{ if $r.References }}
 | 
						|
			<div class="text-sm font-sans px-2 py-1 bg-stone-100 {{ if $markr }}reihen-text{{ end }}">
 | 
						|
				{{ $r.References }}
 | 
						|
			</div>
 | 
						|
		{{ end }}
 | 
						|
		{{ if $showidseries }}
 | 
						|
			{{ range $_, $rel := $bds }}
 | 
						|
				<div class="font-sans text-sm px-2 py-1 bg-stone-100 searchable my-0.5">
 | 
						|
					Almanach-Nr.
 | 
						|
					<span class="reihen-text">
 | 
						|
						{{ (index $entries
 | 
						|
							$rel.Entry).MusenalmID
 | 
						|
						}}
 | 
						|
					</span>
 | 
						|
				</div>
 | 
						|
			{{ end }}
 | 
						|
		{{ end }}
 | 
						|
		<div class="font-sans py-0.5 text-sm">
 | 
						|
			<a href="/reihe/{{ $r.MusenalmID }}" class="no-underline rounded bg-stone-100 px-1.5">
 | 
						|
				<i class="ri-links-line"></i> Link
 | 
						|
			</a>
 | 
						|
		</div>
 | 
						|
	</div>
 | 
						|
	<div class="grow lg:px-0 ml-3 lg:ml-8">
 | 
						|
		<div class="-indent-3">
 | 
						|
			<span class="font-bold reihen-text">
 | 
						|
				{{ $r.Title }}
 | 
						|
			</span>
 | 
						|
			{{ if $r.Annotation }}
 | 
						|
				<span> · </span>
 | 
						|
				<span class="{{ if $marka }}reihen-text{{ end }}">{{ Safe $r.Annotation }}</span>
 | 
						|
			{{ end }}
 | 
						|
		</div>
 | 
						|
		{{ template "_reiherelations" (Arr $r $bds $entries false) }}
 | 
						|
	</div>
 | 
						|
</div>
 |