fix(webui): display an error page in all error cases
This commit is contained in:
parent
c483d909f9
commit
bb11b870d6
5 changed files with 11 additions and 6 deletions
|
@ -3,7 +3,7 @@
|
|||
{{ if ne .Account.PasswordReset nil }}
|
||||
<h2>Password Reset</h2>
|
||||
<article>
|
||||
Direct the user to <a href="/account/{{ .Account.Id }}/reset/{{ .Account.PasswordReset }}">/account/{{ .Account.Id }}/reset/{{ .Account.PasswordReset }}</a> so that they can create their password.
|
||||
Direct the user to <a href="/accounts/{{ .Account.Id }}/reset/{{ .Account.PasswordReset }}">/accounts/{{ .Account.Id }}/reset/{{ .Account.PasswordReset }}</a> so that they can create their password.
|
||||
</article>
|
||||
{{ end }}
|
||||
<h2>Status</h2>
|
||||
|
|
|
@ -19,6 +19,11 @@
|
|||
<i class="material-symbols-outlined">login</i>
|
||||
<span>Login</span>
|
||||
</a>
|
||||
{{ else if eq .Page.Section "error" }}
|
||||
<a href="/">
|
||||
<i class="material-symbols-outlined">mountain_flag</i>
|
||||
<span>TfStated</span>
|
||||
</a>
|
||||
{{ else }}
|
||||
<a href="/states"{{ if eq .Page.Section "states" }} class="primary"{{ end}}>
|
||||
<i class="material-symbols-outlined">home_storage</i>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue