{{template "base/head" .}}
{{template "repo/header" .}}
{{template "base/alert" .}} {{template "repo/sub_menu" .}}

{{.i18n.Tr "repo.default_branch"}}

{{range $branch := .Branches}} {{if eq .Name $.DefaultBranch}} {{if .IsProtected}} {{end}} {{$.DefaultBranch}}

{{ShortSha .Commit.ID.String}} · {{RenderCommitMessage .Commit.CommitMessage $.RepoLink $.Repository.ComposeMetas}} · {{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Commit.Committer.When $.i18n.Lang}}

{{end}} {{end}}
{{if gt (len .Branches) 1}}

{{.i18n.Tr "repo.branches"}}

{{range $branch := .Branches}} {{if ne .Name $.DefaultBranch}} {{if and $.IsWriter (not $.IsMirror)}} {{end}} {{end}} {{end}}
{{if .IsDeleted}} {{.Name}}

{{$.i18n.Tr "repo.branch.deleted_by" .DeletedBranch.DeletedBy.Name}} {{TimeSinceUnix .DeletedBranch.DeletedUnix $.i18n.Lang}}

{{else}} {{if .IsProtected}} {{end}} {{.Name}}

{{ShortSha .Commit.ID.String}} · {{RenderCommitMessage .Commit.CommitMessage $.RepoLink $.Repository.ComposeMetas}} · {{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Commit.Committer.When $.i18n.Lang}}

{{end}}
{{if not .IsDeleted}}
{{.CommitsBehind}}
{{.CommitsAhead}}
{{end}}
{{if not .LatestPullRequest}} {{if and (not .IsDeleted) $.AllowsPulls}} {{end}} {{else}} #{{.LatestPullRequest.Issue.Index}} {{if .LatestPullRequest.HasMerged}} {{$.i18n.Tr "repo.pulls.merged"}} {{else if .LatestPullRequest.Issue.IsClosed}} {{$.i18n.Tr "repo.issues.closed_title"}} {{else}} {{$.i18n.Tr "repo.issues.open_title"}} {{end}} {{end}} {{if .IsProtected}} {{else if .IsDeleted}} {{else}} {{end}}
{{end}}
{{template "base/footer" .}}