From d1638198df3a65fe89bfb28f6e1dd285877b55bc Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Wed, 2 Jul 2025 20:45:16 +0200 Subject: feat: Show git clone url on summary --- templates/gititemtree.qtpl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'templates/gititemtree.qtpl') diff --git a/templates/gititemtree.qtpl b/templates/gititemtree.qtpl index 2753e24..677d8ec 100644 --- a/templates/gititemtree.qtpl +++ b/templates/gititemtree.qtpl @@ -15,7 +15,7 @@ ) %} -{% code func url(name, mode, ref, filename string, path []string) string { +{% code func generateURL(name, mode, ref, filename string, path []string) string { return u.NewPathing(). AddPath(name). AddPath(mode). @@ -32,9 +32,9 @@
{% stripspace %} {% if len(g.Path) != 0 %} - root/ + root/ {% for i, e := range g.Path[:len(g.Path)-1] %} - {%s e %}/ + {%s e %}/ {% endfor %} {%s u.LastOrZero(g.Path) %} {% else %} @@ -46,7 +46,7 @@
{% if len(g.Path) != 0 %} - +
@@ -55,13 +55,13 @@ {% for _, e := range g.Tree.Entries %} {% if e.Mode.IsFile() %}
{%s Ignore(e.Mode.ToOSFileMode()).String() %}
- + {% elseif e.Mode == filemode.Submodule %}
m---------
{%s e.Name %} (submodule)
{% else %}
d---------
- + {% endif %}
-- cgit v1.2.3