diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl index d84298d84..13897f088 100644 --- a/templates/repo/branch/list.tmpl +++ b/templates/repo/branch/list.tmpl @@ -34,21 +34,11 @@
- - - - - - {{if and $.IsWriter (not $.IsMirror)}} - - {{end}} - - {{range $branch := .Branches}} {{if ne .Name $.DefaultBranch}} - - - {{if and $.IsWriter (not $.IsMirror)}} -
{{.i18n.Tr "repo.branch.name"}}{{.i18n.Tr "repo.branch.delete_head"}}
+ {{if .IsDeleted}} {{.Name}}

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

@@ -60,7 +50,7 @@

{{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}}
@@ -74,7 +64,7 @@
{{end}}
+ {{if not .LatestPullRequest}} {{if and (not .IsDeleted) $.AllowsPulls}} @@ -93,7 +83,7 @@ {{end}} + {{if .IsProtected}} {{else if .IsDeleted}}