From adc207d2e6c39fa31283d83021e76300c0099c37 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sun, 26 May 2024 21:40:22 +0200 Subject: feat: Simplify listing --- templates/gitlist.qtpl | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) (limited to 'templates/gitlist.qtpl') diff --git a/templates/gitlist.qtpl b/templates/gitlist.qtpl index 84a42f9..fef9126 100644 --- a/templates/gitlist.qtpl +++ b/templates/gitlist.qtpl @@ -1,6 +1,4 @@ {% import "git.gabrielgio.me/cerrado/pkg/service" %} -{% import "git.gabrielgio.me/cerrado/pkg/u" %} - {% code type GitListPage struct { @@ -11,27 +9,23 @@ type GitListPage struct { {% func (p *GitListPage) Title() %}Git | List{% endfunc %} {% func (p *GitListPage) Content() %} -{% for _, c := range u.ChunkBy(p.Respositories, 3) %}
- {% for _, r := range c %} -
-
- -
-

{%s r.LastCommitMessage %}

-

{%s r.LastCommitDate %}

- summary - log - tree +
+
+ {% for _, r := range p.Respositories %} +
+

+ {%s r.Name %} +

+ +

{%s r.LastCommitMessage %}

+

{%s r.LastCommitDate %}

+ {% endfor %}
+ {% endfunc %}
- {% endfor %}
-{% endfor %} -{% endfunc %} {% func (p *GitListPage) Script() %} {% endfunc %} -- cgit v1.2.3