Skip to content

feat: add switch http(s) button to error page #12942

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Apr 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fmt
  • Loading branch information
f0ssel committed Apr 26, 2024
commit f2edf05c33a259a9e95592b018d3777f9cef39a2
16 changes: 8 additions & 8 deletions site/static/error.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,10 @@ <h1>
{{- if .Error.RenderDescriptionMarkdown }} {{ .ErrorDescriptionHTML }} {{
else }}
<p>{{ .Error.Description }}</p>
{{ end }}
{{- if .Error.AdditionalInfo }}
<br><p>{{ .Error.AdditionalInfo }}</p>
{{ end }}
{{- if .Error.Warnings }}
{{ end }} {{- if .Error.AdditionalInfo }}
<br />
<p>{{ .Error.AdditionalInfo }}</p>
{{ end }} {{- if .Error.Warnings }}
<div class="warning">
<div class="warning-title">
<svg
Expand All @@ -201,9 +200,10 @@ <h3>Warnings</h3>
<div class="button-group">
{{- if .Error.RetryEnabled }}
<button onclick="window.location.reload()">Retry</button>
{{ end }}
{{- if .Error.SwitchProtocolLink }}
<a href="{{ .Error.SwitchProtocolLink }}">Switch to {{ .Error.SwitchProtocolTarget }}</a>
{{ end }} {{- if .Error.SwitchProtocolLink }}
<a href="{{ .Error.SwitchProtocolLink }}"
>Switch to {{ .Error.SwitchProtocolTarget }}</a
>
{{ end }}
<a href="{{ .Error.DashboardURL }}">Back to site</a>
</div>
Expand Down