From e9098e00fb6339b759df5b0df2e086cef8a7ce83 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Fri, 7 Jun 2024 23:02:54 +0200 Subject: feat: Rework some pages --- templates/gititemtree.qtpl | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'templates/gititemtree.qtpl') diff --git a/templates/gititemtree.qtpl b/templates/gititemtree.qtpl index be7a27d..68b9856 100644 --- a/templates/gititemtree.qtpl +++ b/templates/gititemtree.qtpl @@ -14,15 +14,21 @@ type GitItemTreePage struct { {% func (g *GitItemTreePage) Nav(name, ref string) %}{%= GitItemNav(name, ref, Tree) %}{% endfunc %} {% func (g *GitItemTreePage) GitContent() %} -{% for _, e := range g.Tree.Entries %}
-
{%s Ignore(e.Mode.ToOSFileMode()).String() %}
- {% if e.Mode.IsFile() %} - - {% else %} - - {% endif %} -
{%dl Ignore(g.Tree.Size(e.Name))%} KiB
+
+
+ {% for _, e := range g.Tree.Entries %} +
{%s Ignore(e.Mode.ToOSFileMode()).String() %}
+ {% if e.Mode.IsFile() %} + + {% else %} + + {% endif %} +
+
+
{%dl Ignore(g.Tree.Size(e.Name))%} KiB
+ {% endfor %} +
+
-{% endfor %} {% endfunc %} -- cgit v1.2.3