diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl
index cba6b740c..1acda48a2 100644
--- a/templates/repo/branch/list.tmpl
+++ b/templates/repo/branch/list.tmpl
@@ -13,10 +13,14 @@
- {{if .IsProtected}}
-
+ {{range .Branches}}
+ {{if eq .Name $.DefaultBranch}}
+ {{if .IsProtected}}
+
+ {{end}}
+ {{.Name}}
+ {{end}}
{{end}}
- {{.DefaultBranch}}
|
@@ -40,7 +44,7 @@
- {{range $branch := .Branches}}
+ {{range .Branches}}
{{if ne .Name $.DefaultBranch}}
|