From 2fcc394c53f995750b52ad06153041f61f0a0c55 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sun, 9 Jun 2024 20:07:00 +0200 Subject: feat: Add global reference to ref and name --- templates/gititemrefs.qtpl | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'templates/gititemrefs.qtpl') diff --git a/templates/gititemrefs.qtpl b/templates/gititemrefs.qtpl index 56f6c2b..47a69e3 100644 --- a/templates/gititemrefs.qtpl +++ b/templates/gititemrefs.qtpl @@ -10,13 +10,12 @@ type GitItemRefsPage struct { {% func (g *GitItemRefsPage) Nav(name, ref string) %}{%= GitItemNav(name, ref, Refs) %}{% endfunc %} -{% func (g *GitItemRefsPage) GitContent() %} +{% func (g *GitItemRefsPage) GitContent(name, ref string) %}
-
-

Tags

-
+
+
{% for _, t := range g.Tags %} -
+
{%s TimeFormat(t.Tagger.When) %}
@@ -30,14 +29,19 @@ type GitItemRefsPage struct { {% endfor %}
-
-

Branches

-
+
+
{% for _, b := range g.Branches %} -
-
+
+
{%s b.Name().Short() %}
+
+
+ tree + log +
+
{% endfor %}
-- cgit v1.2.3