1{% import "git.gabrielgio.me/cerrado/pkg/service" %}
2
3{% code
4type GitListPage struct {
5 Respositories []*service.Repository
6}
7%}
8
9{% func (p *GitListPage) Title() %}Git | List{% endfunc %}
10
11{% func (p *GitListPage) Content() %}
12<div class="row">
13 <div class="col-md-8 offset-md-2">
14 <div class="event-list">
15 {% for _, r := range p.Respositories %}
16 <div class="event">
17 <h4>
18 <a href="/{%s r.Name %}">{%s r.Name %}</a>
19 </h4>
20 </hr>
21 <p>{%s r.LastCommitMessage %}</p>
22 <p><small>{%s r.LastCommitDate %}</small></p>
23 </div>
24 {% endfor %}
25 </div>
26 {% endfunc %}
27 </div>
28</div>
29
30{% func (p *GitListPage) Script() %}
31{% endfunc %}