diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-01 19:59:43 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-01 19:59:43 +0200 |
commit | e3705f35c642e578625ce4574d189fa0b0869403 (patch) | |
tree | f63d779d4eb817ad6b5abed30f50ad3b85ffcab1 /templates/gititem.qtpl | |
parent | f1643ffcbd543cacfe9ab5e46eafdd0c39cd47fd (diff) | |
download | cerrado-e3705f35c642e578625ce4574d189fa0b0869403.tar.gz cerrado-e3705f35c642e578625ce4574d189fa0b0869403.tar.bz2 cerrado-e3705f35c642e578625ce4574d189fa0b0869403.zip |
feat: Add ref support
Now log and tree can be loaded using a given reference.
Diffstat (limited to 'templates/gititem.qtpl')
-rw-r--r-- | templates/gititem.qtpl | 10 |
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> |