blob: 588c26460e2549a7a8164dc5d6ee467a12329dd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{% import "git.gabrielgio.me/cerrado/pkg/service" %}
{% code
type GitListPage struct {
Respositories []*service.Repository
}
%}
{% func (p *GitListPage) Title() %}Git | List{% endfunc %}
{% func (p *GitListPage) Navbar() %}{%= Navbar(Git) %}{% endfunc %}
{% func (p *GitListPage) Content() %}
<div class="row">
<div class="col-md-8 offset-md-2">
<div class="event-list">
{% for _, r := range p.Respositories %}
<div class="event">
<h4>
<a href="/{%s r.Name %}">{%s r.Name %}</a>
</h4>
</hr>
<p>{%s r.LastCommitMessage %}</p>
<p><small>{%s r.LastCommitDate %}</small></p>
</div>
{% endfor %}
</div>
{% endfunc %}
</div>
</div>
{% func (p *GitListPage) Script() %}
{% endfunc %}
|