aboutsummaryrefslogtreecommitdiff
path: root/templates/about.qtpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/about.qtpl')
-rw-r--r--templates/about.qtpl11
1 files changed, 7 insertions, 4 deletions
diff --git a/templates/about.qtpl b/templates/about.qtpl
index faee50e..cfbf0d9 100644
--- a/templates/about.qtpl
+++ b/templates/about.qtpl
@@ -1,16 +1,19 @@
+{% import "context" %}
+
{% code
type AboutPage struct {
+ LoggedIn bool
Body []byte
}
%}
-{% func (p *AboutPage) Title() %}Hello{% endfunc %}
+{% func (p *AboutPage) Title(ctx context.Context) %}Hello{% endfunc %}
-{% func (p *AboutPage) Navbar() %}{%= Navbar(About) %}{% endfunc %}
+{% func (p *AboutPage) Navbar(ctx context.Context) %}{%= Navbar(ctx, About) %}{% endfunc %}
-{% func (p *AboutPage) Content() %}
+{% func (p *AboutPage) Content(ctx context.Context) %}
{%z= p.Body %}
{% endfunc %}
-{% func (p *AboutPage) Script() %}
+{% func (p *AboutPage) Script(ctx context.Context) %}
{% endfunc %}