cerrado @ 306a8cdf6fac4e3ec2bfeda6c9952f603a5577e1

 1{% import "git.gabrielgio.me/cerrado/pkg/service" %}
 2
 3{% code
 4type GitListPage struct {
 5    Respositories []*service.Repository
 6    About []byte
 7}
 8%}
 9
10{% func (p *GitListPage) Title() %}Git | List{% endfunc %}
11
12{% func (p *GitListPage) Navbar() %}{%= Navbar(Git) %}{% endfunc %}
13
14{% func (p *GitListPage) Content() %}
15<div class="row">
16  <div class="col-md-6 order-last order-md-first">
17    <div class="event-list">
18      {% for _, r := range p.Respositories %}
19      <div class="event">
20        <h4>
21          <a href="/{%s r.Name %}/">{%s r.Name %}</a>
22        </h4>
23        </hr>
24        <p>{%s r.Description %}</p>
25        <p>
26          <a href="/{%s r.Name %}/log/{%s r.Ref %}/">log</a>
27          <a href="/{%s r.Name %}/tree/{%s r.Ref %}/">tree</a>
28          <a href="/{%s r.Name %}/refs/">refs</a>
29        </p>
30      </div>
31      {% endfor %}
32    </div>
33  </div>
34  <div id="about" class="col-md-4 order-first order-md-last">
35    {%z= p.About %}
36  </div>
37</div>
38{% endfunc %}
39
40{% func (p *GitListPage) Script() %}
41{% endfunc %}