aboutsummaryrefslogtreecommitdiff
path: root/templates/error.qtpl
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-06-08 00:01:44 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-06-08 00:01:44 +0200
commit6079b1d963f34ada5c4b25363f2319901e283936 (patch)
treef7f93616eb3dacfcebee486fe7542ec3adfb3950 /templates/error.qtpl
parente9098e00fb6339b759df5b0df2e086cef8a7ce83 (diff)
downloadcerrado-6079b1d963f34ada5c4b25363f2319901e283936.tar.gz
cerrado-6079b1d963f34ada5c4b25363f2319901e283936.tar.bz2
cerrado-6079b1d963f34ada5c4b25363f2319901e283936.zip
feat: Add error handling
Diffstat (limited to 'templates/error.qtpl')
-rw-r--r--templates/error.qtpl16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/error.qtpl b/templates/error.qtpl
new file mode 100644
index 0000000..771d533
--- /dev/null
+++ b/templates/error.qtpl
@@ -0,0 +1,16 @@
+{% code
+type ErrorPage struct {
+ Message string
+}
+%}
+
+{% func (p *ErrorPage) Title() %}Error{% endfunc %}
+
+{% func (p *ErrorPage) Navbar() %}{%= Navbar(Git) %}{% endfunc %}
+
+{% func (p *ErrorPage) Content() %}
+{%s p.Message %}
+{% endfunc %}
+
+{% func (p *ErrorPage) Script() %}
+{% endfunc %}