{{.i18n.Tr "repo.branch.delete_desc" | Str2html}}
{{template "base/head" .}}
{{range .Branches}}
{{if eq .Name $.DefaultBranch}}
{{if .IsProtected}}
{{end}}
{{$.DefaultBranch}}
{{ShortSha .Commit.ID.String}} · · {{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Commit.Committer.When $.i18n.Lang}} {{end}} {{end}} |
{{if .IsDeleted}}
{{$.i18n.Tr "repo.branch.deleted_by" .DeletedBranch.DeletedBy.Name}} {{TimeSinceUnix .DeletedBranch.DeletedUnix $.i18n.Lang}} {{else}} {{if .IsProtected}} {{end}} {{.Name}}{{ShortSha .Commit.ID.String}} · · {{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Commit.Committer.When $.i18n.Lang}} {{end}} |
{{if not .IsDeleted}}
|
{{if not .LatestPullRequest}} {{if .IsIncluded}} {{$.i18n.Tr "repo.branch.included"}} {{else if and (not .IsDeleted) $.AllowsPulls (gt .CommitsAhead 0)}} {{end}} {{else if and .LatestPullRequest.HasMerged .MergeMovedOn}} {{if and (not .IsDeleted) $.AllowsPulls (gt .CommitsAhead 0)}} {{end}} {{else}} {{if ne .LatestPullRequest.BaseRepoID .LatestPullRequest.HeadRepoID}}{{.LatestPullRequest.BaseRepo.FullName}}{{end}}#{{.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)}} {{else}} {{end}} {{end}} | {{end}} {{if and $.IsWriter (not $.IsMirror) (not $.Repository.IsArchived) (not .IsProtected)}} {{if .IsDeleted}}
{{.i18n.Tr "repo.branch.delete_desc" | Str2html}}