aboutsummaryrefslogtreecommitdiff
path: root/pkg/tpl/error.templ
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-10-07 03:45:49 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-10-07 03:47:56 +0300
commitffcc9eeb1746971d7d009822ae65a1201c54e289 (patch)
treed8d347f638f5d98c83db36f9dcb2b45c569b03fc /pkg/tpl/error.templ
parent420e049415c8ec7f7a209a03110eecbe0c83e9e0 (diff)
Мелкие правки админки
Diffstat (limited to 'pkg/tpl/error.templ')
-rw-r--r--pkg/tpl/error.templ8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkg/tpl/error.templ b/pkg/tpl/error.templ
index 8045c1a..a2e9438 100644
--- a/pkg/tpl/error.templ
+++ b/pkg/tpl/error.templ
@@ -1,8 +1,10 @@
package tpl
-templ ErrorPage(err string) {
+import "strconv"
+
+templ ErrorPage(code int, message string) {
@Layout(HeaderParams{}) {
- <h1>Ошибка!</h1>
- <p>{ err }</p>
+ <h1>Ошибка { strconv.Itoa(code) }!</h1>
+ <p>{ message }</p>
}
}