1{{define "content"}}
2<nav aria-label="breadcrumb">
3 <ul>
4 <li><a href="/{{.Repo.Name}}">{{.Repo.Name}}</a></li>
5 <li><a href="/{{.Repo.Name}}/tags">Tags</a></li>
6 <li aria-current="page">{{.Ref.Name.Short}}</li>
7 </ul>
8</nav>
9
10<header>
11 <hgroup>
12 <h2 id="tag-heading">{{.Ref.Name.Short}}</h2>
13 {{if .Commit}}
14 <p>
15 {{ $names := .Commit | attributionNames }}
16 {{ $nlen := len $names }}
17 {{ range $i, $n := $names }}
18 {{ if gt $i 0 }}
19 {{ if eq $nlen 2 }} and {{ else if eq $i (sub $nlen 1) }}, and {{ else }}, {{ end }}
20 {{ end }}
21 <strong>{{$n}}</strong>
22 {{ end }}
23 created <time datetime="{{.TagDate | rfc3339}}" data-tooltip="{{.TagDate | formatDate}}">{{.TagDate | relativeTime}}</time>
24 </p>
25 {{end}}
26 </hgroup>
27
28 <nav aria-label="Tag actions">
29 <ul>
30 <li><a href="/{{.Repo.Name}}/tree/{{.Ref.Name.Short}}">Browse file tree</a></li>
31 {{if .Commit}}
32 <li><a href="/{{.Repo.Name}}/commit/{{.Commit.ID}}">View commit</a></li>
33 {{end}}
34 </ul>
35 </nav>
36
37 {{if .Tag}}
38 {{$message := .Tag.Message}}
39 {{if $message}}
40 <pre><code>{{$message}}</code></pre>
41 {{end}}
42 {{else if .Commit}}
43 {{$body := .Commit.Message | commitBody}}
44 {{if $body}}
45 <pre><code>{{$body}}</code></pre>
46 {{end}}
47 {{end}}
48</header>
49{{end}}