1{{- /*gotype: github.com/antonmedv/gitmal/pkg/templates.BranchesParams*/ -}}
 2{{ define "head" }}{{ end }}
 3
 4{{ define "body" }}
 5    <h1>Branches</h1>
 6    <div class="branches">
 7        {{ if .Branches }}
 8            {{ range .Branches }}
 9                <div class="branch-row">
10                    <a href="{{ .Href }}">{{ .Name }}</a>
11                    {{ if .IsDefault }}<span class="badge">default</span>{{ end }}
12                    <a href="{{ .CommitsHref }}" class="to-commits">commits →</a>
13                </div>
14            {{ end }}
15        {{ else }}
16            <div class="branch-row">(no branches)</div>
17        {{ end }}
18    </div>
19{{ end }}