aboutsummaryrefslogtreecommitdiff
path: root/templates/error.qtpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/error.qtpl')
-rw-r--r--templates/error.qtpl10
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/error.qtpl b/templates/error.qtpl
index 771d533..65e1321 100644
--- a/templates/error.qtpl
+++ b/templates/error.qtpl
@@ -1,16 +1,18 @@
+{% import "context" %}
+
{% code
type ErrorPage struct {
Message string
}
%}
-{% func (p *ErrorPage) Title() %}Error{% endfunc %}
+{% func (p *ErrorPage) Title(ctx context.Context) %}Error{% endfunc %}
-{% func (p *ErrorPage) Navbar() %}{%= Navbar(Git) %}{% endfunc %}
+{% func (p *ErrorPage) Navbar(ctx context.Context) %}{%= Navbar(ctx, Git) %}{% endfunc %}
-{% func (p *ErrorPage) Content() %}
+{% func (p *ErrorPage) Content(ctx context.Context) %}
{%s p.Message %}
{% endfunc %}
-{% func (p *ErrorPage) Script() %}
+{% func (p *ErrorPage) Script(ctx context.Context) %}
{% endfunc %}