{{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}} {{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 (not .IsDeleted)}} {{end}} {{if and $.IsWriter (not $.IsMirror) (not $.Repository.IsArchived) (not .IsProtected)}} {{if .IsDeleted}} {{else}} {{end}} {{end}}
{{end}}
{{template "base/footer" .}}