aboutsummaryrefslogtreecommitdiff
path: root/templates/gititem.qtpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/gititem.qtpl')
-rw-r--r--templates/gititem.qtpl10
1 files changed, 3 insertions, 7 deletions
diff --git a/templates/gititem.qtpl b/templates/gititem.qtpl
index d2fcea7..3e2dd4e 100644
--- a/templates/gititem.qtpl
+++ b/templates/gititem.qtpl
@@ -1,6 +1,6 @@
{% interface
GitItemBase {
- Nav(name string)
+ Nav(name, ref string)
GitContent()
}
%}
@@ -8,6 +8,7 @@ GitItemBase {
{% code
type GitItemPage struct {
Name string
+ Ref string
GitItemBase
}
%}
@@ -17,12 +18,7 @@ type GitItemPage struct {
{% func (p *GitItemPage) Navbar() %}{%= Navbar(Git) %}{% endfunc %}
{% func (p *GitItemPage) Content() %}
-<div class="row">
- <h3>{%s p.Name %}</h3>
-</div>
-<div class="row">
-{%= p.Nav(p.Name) %}
-</div>
+{%= p.Nav(p.Name, p.Ref) %}
<div class="container">
{%= p.GitContent() %}
</div>