cerrado @ 1e45ae2ea3497958b2ea6a20137955cfc3bbc964

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