Jan Dittberner
44e18ca3a5
The primary change in this commit is the introduction of consent management. A few minor improvements have been made: - move common header to ui/templates/base.gohtml - add an I18NService to unify localization - add a handlers.getLocalizer function - fix translation extraction and merging in Makefile - add a new AuthMiddleware to centralize client certificate authentication - move client certificate handling to internal/handlers/security.go - improver error handling, allow localization of HTTP error messages
15 lines
No EOL
523 B
Text
15 lines
No EOL
523 B
Text
{{ define "content" }}
|
|
<main role="main" class="container">
|
|
<h1>{{ .Title }}</h1>
|
|
<div class="alert alert-danger">
|
|
<h2 class="alert-heading">{{ if .details.ErrorCode }}
|
|
<strong>{{ .details.ErrorCode }}</strong> {{ end }}{{ .details.ErrorMessage }}
|
|
</h2>
|
|
{{ if .details.ErrorDetails }}
|
|
{{ range .details.ErrorDetails }}
|
|
{{ . }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
</main>
|
|
{{ end }} |