cerrado @ 2e4b2fb52a539188b27212005d626f0849e78196

 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 class="alert alert-warning text-center" role="alert">
37        This project is under development, things may be broken or incomplete.
38    </div>
39  </div>
40</div>
41{% endfunc %}
42
43{% func (p *GitListPage) Script() %}
44{% endfunc %}