mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 17:25:32 +00:00
request type
This commit is contained in:
@@ -18,19 +18,19 @@
|
||||
<i class="ri-code-line"></i>
|
||||
<a href="https://github.com/Theodor-Springmann-Stiftung/musenalm">Code</a>
|
||||
<span>·</span>
|
||||
{{ if .page.User }}
|
||||
{{ if .request.user }}
|
||||
<i class="ri-user-3-line"></i>
|
||||
{{ if .page.User.Name }}
|
||||
<b>{{ .page.User.Name }}</b>
|
||||
{{ if .request.user.Name }}
|
||||
<b>{{ .request.user.Name }}</b>
|
||||
{{ else }}
|
||||
<b>{{ .page.User.Email }}</b>
|
||||
<b>{{ .request.user.Email }}</b>
|
||||
{{ end }}
|
||||
|
|
||||
<i class="ri-logout-box-line"></i>
|
||||
<a href="/logout?redirectTo={{ .page.FullPath }}">Logout</a>
|
||||
<a href="/logout?redirectTo={{ .request.fullpath }}">Logout</a>
|
||||
{{ else }}
|
||||
<i class="ri-login-box-line"></i>
|
||||
<a href="/login?redirectTo={{ .page.FullPath }}">Login</a>
|
||||
<a href="/login?redirectTo={{ .request.fullpath }}">Login</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -23,27 +23,27 @@
|
||||
[&>*]:px-2 [&>*]:pt-1 [&>*]:-mb-1.5">
|
||||
<a
|
||||
href="/reihen/"
|
||||
{{ if and $model.page (HasPrefix $model.page.Path "/reihe") -}}
|
||||
{{ if and $model.request (HasPrefix $model.request.path "/reihe") -}}
|
||||
aria-current="page"
|
||||
{{- end -}}
|
||||
>Reihen</a
|
||||
>
|
||||
<a
|
||||
href="/personen/"
|
||||
{{ if and $model.page (HasPrefix $model.page.Path "/person") -}}
|
||||
{{ if and $model.request (HasPrefix $model.request.path "/person") -}}
|
||||
aria-current="page"
|
||||
{{- end -}}
|
||||
>Personen</a
|
||||
>
|
||||
<a
|
||||
href="/suche/"
|
||||
{{ if and $model.page (HasPrefix $model.page.Path "/suche") -}}
|
||||
{{ if and $model.request (HasPrefix $model.request.path "/suche") -}}
|
||||
aria-current="page"
|
||||
{{- end -}}
|
||||
>Suche</a
|
||||
>
|
||||
<button
|
||||
{{ if and $model.page (HasPrefix $model.page.Path "/redaktion") -}}
|
||||
{{ if and $model.request (HasPrefix $model.request.path "/redaktion") -}}
|
||||
aria-current="true"
|
||||
{{- end }}
|
||||
data-url="/redaktion/"
|
||||
@@ -64,42 +64,42 @@
|
||||
[&>a]:no-underline [&>*]:-mb-1.5 w-full pr-2.5 [&>*]:px-1.5">
|
||||
<a
|
||||
href="/redaktion/einleitung/"
|
||||
{{ if and $model.page (HasPrefix $model.page.Path "/redaktion/einleitung") -}}
|
||||
{{ if and $model.request (HasPrefix $model.request.path "/redaktion/einleitung") -}}
|
||||
aria-current="page"
|
||||
{{- end -}}
|
||||
>Einleitung</a
|
||||
>
|
||||
<a
|
||||
href="/redaktion/benutzerhinweise/"
|
||||
{{ if and $model.page (HasPrefix $model.page.Path "/redaktion/benutzerhinweise") -}}
|
||||
{{ if and $model.request (HasPrefix $model.request.path "/redaktion/benutzerhinweise") -}}
|
||||
aria-current="page"
|
||||
{{- end -}}
|
||||
>Benutzerhinweise</a
|
||||
>
|
||||
<a
|
||||
href="/redaktion/literatur/"
|
||||
{{ if and $model.page (HasPrefix $model.page.Path "/redaktion/literatur") -}}
|
||||
{{ if and $model.request (HasPrefix $model.request.path "/redaktion/literatur") -}}
|
||||
aria-current="page"
|
||||
{{- end -}}
|
||||
>Literatur</a
|
||||
>
|
||||
<a
|
||||
href="/redaktion/lesekabinett/"
|
||||
{{ if and $model.page (HasPrefix $model.page.Path "/redaktion/lesekabinett") -}}
|
||||
{{ if and $model.request (HasPrefix $model.request.path "/redaktion/lesekabinett") -}}
|
||||
aria-current="page"
|
||||
{{- end -}}
|
||||
>Lesekabinett</a
|
||||
>
|
||||
<a
|
||||
href="/redaktion/danksagungen/"
|
||||
{{ if and $model.page (HasPrefix $model.page.Path "/redaktion/danksagungen") -}}
|
||||
{{ if and $model.request (HasPrefix $model.request.path "/redaktion/danksagungen") -}}
|
||||
aria-current="page"
|
||||
{{- end -}}
|
||||
>Danksagungen</a
|
||||
>
|
||||
<a
|
||||
href="/redaktion/kontakt/"
|
||||
{{ if and $model.page (HasPrefix $model.page.Path "/redaktion/kontakt") -}}
|
||||
{{ if and $model.request (HasPrefix $model.request.path "/redaktion/kontakt") -}}
|
||||
aria-current="page"
|
||||
{{- end -}}
|
||||
>Kontakt</a
|
||||
|
||||
Reference in New Issue
Block a user