From 0b1a4c38d9b14754012239bccd445067a5de9500 Mon Sep 17 00:00:00 2001 From: 6543 <24977596+6543@users.noreply.github.com> Date: Fri, 26 Jul 2019 13:21:14 +0200 Subject: [PATCH] [Branch View] Delete Table Header (#7622) * add class trom table header to table body * remove table header --- templates/repo/branch/list.tmpl | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl index d84298d843..13897f088c 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}}