aboutsummaryrefslogtreecommitdiff
path: root/templates/gitlist.qtpl
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-05-26 20:33:37 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-05-26 20:33:37 +0200
commit4534dffb865eb1a50bfbc291a5c3798183081caf (patch)
treed5bd1a2d9912a6442e3be1511ffb1d99f12287b0 /templates/gitlist.qtpl
parent349a3d1ff36a436261b1b65b870f8f262f06584f (diff)
downloadcerrado-4534dffb865eb1a50bfbc291a5c3798183081caf.tar.gz
cerrado-4534dffb865eb1a50bfbc291a5c3798183081caf.tar.bz2
cerrado-4534dffb865eb1a50bfbc291a5c3798183081caf.zip
feat: Add actual git listing implementation
Diffstat (limited to 'templates/gitlist.qtpl')
-rw-r--r--templates/gitlist.qtpl11
1 files changed, 7 insertions, 4 deletions
diff --git a/templates/gitlist.qtpl b/templates/gitlist.qtpl
index 10a89da..84a42f9 100644
--- a/templates/gitlist.qtpl
+++ b/templates/gitlist.qtpl
@@ -14,14 +14,17 @@ type GitListPage struct {
{% for _, c := range u.ChunkBy(p.Respositories, 3) %}
<div class="row">
{% for _, r := range c %}
- <div class="col-md-4 g-0">
+ <div class="col-md g-1">
<div class="card">
<div class="card-header">
- {%s r.Title %}
+ <a href="/{%s r.Name %}" class="btn btn-primary">{%s r.Title %}</a>
</div>
<div class="card-body">
- <p class="card-text">{%s r.Description %}</p>
- <a href="/{%s r.Name %}" class="btn btn-primary">go to repository</a>
+ <p class="card-text lead">{%s r.LastCommitMessage %}</p>
+ <p class="card-text"><small>{%s r.LastCommitDate %}</small></p>
+ <a href="#" class="card-link">summary</a>
+ <a href="#" class="card-link">log</a>
+ <a href="#" class="card-link">tree</a>
</div>
</div>
</div>