diff options
Diffstat (limited to 'templates/gitlist.qtpl')
-rw-r--r-- | templates/gitlist.qtpl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/templates/gitlist.qtpl b/templates/gitlist.qtpl index 7c104ca..fa47008 100644 --- a/templates/gitlist.qtpl +++ b/templates/gitlist.qtpl @@ -1,4 +1,5 @@ {% import "git.gabrielgio.me/cerrado/pkg/service" %} +{% import "context" %} {% code type GitListPage struct { @@ -7,11 +8,11 @@ type GitListPage struct { } %} -{% func (p *GitListPage) Title() %}Git | List{% endfunc %} +{% func (p *GitListPage) Title(ctx context.Context) %}Git | List{% endfunc %} -{% func (p *GitListPage) Navbar() %}{%= Navbar(Git) %}{% endfunc %} +{% func (p *GitListPage) Navbar(ctx context.Context) %}{%= Navbar(ctx, Git) %}{% endfunc %} -{% func (p *GitListPage) Content() %} +{% func (p *GitListPage) Content(ctx context.Context) %} <div class="row"> <div class="col-md-6 order-last order-md-first"> <div class="event-list"> @@ -40,5 +41,5 @@ type GitListPage struct { </div> {% endfunc %} -{% func (p *GitListPage) Script() %} +{% func (p *GitListPage) Script(ctx context.Context) %} {% endfunc %} |