fix(webui): display an error page in all error cases
All checks were successful
main / main (push) Successful in 1m48s
main / deploy (push) Has been skipped
main / publish (push) Has been skipped

This commit is contained in:
Julien Dessaux 2025-04-19 15:19:21 +02:00
parent c483d909f9
commit bb11b870d6
Signed by: adyxax
GPG key ID: F92E51B86E07177E
5 changed files with 11 additions and 6 deletions

View file

@ -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>