diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-08 00:01:44 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-08 00:01:44 +0200 |
commit | 6079b1d963f34ada5c4b25363f2319901e283936 (patch) | |
tree | f7f93616eb3dacfcebee486fe7542ec3adfb3950 /templates/error.qtpl | |
parent | e9098e00fb6339b759df5b0df2e086cef8a7ce83 (diff) | |
download | cerrado-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.qtpl | 16 |
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 %} |