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 %}/summary">{%s r.Name %}</a>
21 </h4>
22 </hr>
23 <p>{%s r.LastCommitMessage %}</p>
24 <p><small>{%s r.LastCommitDate %}</small></p>
25 <p>
26 <a href="/{%s r.Name %}/summary">summary</a>
27 <a href="/{%s r.Name %}/log">log</a>
28 <a href="/{%s r.Name %}/tree">tree</a>
29 </p>
30 </div>
31 {% endfor %}
32 </div>
33 {% endfunc %}
34 </div>
35</div>
36
37{% func (p *GitListPage) Script() %}
38{% endfunc %}