diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-05-26 21:40:22 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-05-26 21:40:22 +0200 |
commit | adc207d2e6c39fa31283d83021e76300c0099c37 (patch) | |
tree | 3131b1353028d81e71055a4bf87a15c8427d86c5 /templates/gitlist.qtpl | |
parent | 4534dffb865eb1a50bfbc291a5c3798183081caf (diff) | |
download | cerrado-adc207d2e6c39fa31283d83021e76300c0099c37.tar.gz cerrado-adc207d2e6c39fa31283d83021e76300c0099c37.tar.bz2 cerrado-adc207d2e6c39fa31283d83021e76300c0099c37.zip |
feat: Simplify listing
Diffstat (limited to 'templates/gitlist.qtpl')
-rw-r--r-- | templates/gitlist.qtpl | 30 |
1 files changed, 12 insertions, 18 deletions
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) %} <div class="row"> - {% for _, r := range c %} - <div class="col-md g-1"> - <div class="card"> - <div class="card-header"> - <a href="/{%s r.Name %}" class="btn btn-primary">{%s r.Title %}</a> - </div> - <div class="card-body"> - <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 class="col-md-8 offset-md-2"> + <div class="event-list"> + {% for _, r := range p.Respositories %} + <div class="event"> + <h4> + <a href="/{%s r.Name %}">{%s r.Name %}</a> + </h4> + </hr> + <p>{%s r.LastCommitMessage %}</p> + <p><small>{%s r.LastCommitDate %}</small></p> </div> + {% endfor %} </div> + {% endfunc %} </div> - {% endfor %} </div> -{% endfor %} -{% endfunc %} {% func (p *GitListPage) Script() %} {% endfunc %} |