diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-07 23:02:54 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-07 23:02:54 +0200 |
commit | e9098e00fb6339b759df5b0df2e086cef8a7ce83 (patch) | |
tree | 97ada52833cf152cf347f418e24ccb5bc05fd5e4 /templates/gitlist.qtpl | |
parent | c7a8aa113a914e70e027fea93265c7232b865b5e (diff) | |
download | cerrado-e9098e00fb6339b759df5b0df2e086cef8a7ce83.tar.gz cerrado-e9098e00fb6339b759df5b0df2e086cef8a7ce83.tar.bz2 cerrado-e9098e00fb6339b759df5b0df2e086cef8a7ce83.zip |
feat: Rework some pages
Diffstat (limited to 'templates/gitlist.qtpl')
-rw-r--r-- | templates/gitlist.qtpl | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/templates/gitlist.qtpl b/templates/gitlist.qtpl index 3d7ef82..937ba22 100644 --- a/templates/gitlist.qtpl +++ b/templates/gitlist.qtpl @@ -3,6 +3,7 @@ {% code type GitListPage struct { Respositories []*service.Repository + About []byte } %} @@ -12,7 +13,7 @@ type GitListPage struct { {% func (p *GitListPage) Content() %} <div class="row"> - <div class="col-md-8 offset-md-2"> + <div class="col-md-6 order-last order-md-first"> <div class="event-list"> {% for _, r := range p.Respositories %} <div class="event"> @@ -20,8 +21,7 @@ type GitListPage struct { <a href="/{%s r.Name %}">{%s r.Name %}</a> </h4> </hr> - <p>{%s r.LastCommitMessage %}</p> - <p><small>{%s r.LastCommitDate %}</small></p> + <p>{%s r.Description %}</p> <p> <a href="/{%s r.Name %}/log/{%s r.Ref %}">log</a> <a href="/{%s r.Name %}/tree/{%s r.Ref %}">tree</a> @@ -30,9 +30,12 @@ type GitListPage struct { </div> {% endfor %} </div> - {% endfunc %} + </div> + <div id="about" class="col-md-4 order-first order-md-last"> + {%z= p.About %} </div> </div> +{% endfunc %} {% func (p *GitListPage) Script() %} {% endfunc %} |