aboutsummaryrefslogtreecommitdiff
path: root/templates/gitlist.qtpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/gitlist.qtpl')
-rw-r--r--templates/gitlist.qtpl30
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 %}