aboutsummaryrefslogtreecommitdiff
path: root/templates/gititem.qtpl
blob: 3e2dd4e543265ca86fbe8832a7001b392edb0b7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{% interface 
GitItemBase {
   Nav(name, ref string)
   GitContent()
}
%}

{% code
type GitItemPage struct {
    Name string
    Ref string
    GitItemBase
}
%}

{% func (p *GitItemPage) Title() %}Git | List{% endfunc %}

{% func (p *GitItemPage) Navbar() %}{%= Navbar(Git) %}{% endfunc %}

{% func (p *GitItemPage) Content() %}
{%= p.Nav(p.Name, p.Ref) %}
<div class="container">
{%= p.GitContent() %}
</div>
{% endfunc %}

{% func (p *GitItemPage) Script() %}
{% endfunc %}