cerrado @ fb45f1f5002ffdb40150333c5a48458b801f3022

 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        <p><a href="#">summary</a> <a href="#">log</a> <a href="#">tree</a></p>
26      </div>
27      {% endfor %}
28    </div>
29  {% endfunc %}
30  </div>
31</div>
32
33{% func (p *GitListPage) Script() %}
34{% endfunc %}