From 349a3d1ff36a436261b1b65b870f8f262f06584f Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sun, 26 May 2024 00:05:31 +0200 Subject: feat: Add bare bones project list --- templates/gitlist.qtpl | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 templates/gitlist.qtpl (limited to 'templates/gitlist.qtpl') diff --git a/templates/gitlist.qtpl b/templates/gitlist.qtpl new file mode 100644 index 0000000..10a89da --- /dev/null +++ b/templates/gitlist.qtpl @@ -0,0 +1,34 @@ +{% import "git.gabrielgio.me/cerrado/pkg/service" %} +{% import "git.gabrielgio.me/cerrado/pkg/u" %} + + +{% code +type GitListPage struct { + Respositories []*service.Repository +} +%} + +{% 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.Title %} +
+
+

{%s r.Description %}

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