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) Navbar() %}{%= Navbar(Git) %}{% endfunc %}
12
13{% func (p *GitListPage) Content() %}
14<div class="row">
15 <div class="col-md-8 offset-md-2">
16 <div class="event-list">
17 {% for _, r := range p.Respositories %}
18 <div class="event">
19 <h4>
20 <a href="/{%s r.Name %}">{%s r.Name %}</a>
21 </h4>
22 </hr>
23 <p>{%s r.LastCommitMessage %}</p>
24 <p><small>{%s r.LastCommitDate %}</small></p>
25 </div>
26 {% endfor %}
27 </div>
28 {% endfunc %}
29 </div>
30</div>
31
32{% func (p *GitListPage) Script() %}
33{% endfunc %}