Skip to content

Commit 0b1a4c3

Browse files
6543zeripath
authored andcommitted
[Branch View] Delete Table Header (#7622)
* add class trom table header to table body * remove table header
1 parent 539acba commit 0b1a4c3

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

templates/repo/branch/list.tmpl

+4-14
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,11 @@
3434
</h4>
3535
<div class="ui attached table segment">
3636
<table class="ui very basic striped fixed table single line">
37-
<thead>
38-
<tr>
39-
<th class="six wide">{{.i18n.Tr "repo.branch.name"}}</th>
40-
<th class="two wide"></th>
41-
<th class="two wide"></th>
42-
{{if and $.IsWriter (not $.IsMirror)}}
43-
<th class="one wide right aligned">{{.i18n.Tr "repo.branch.delete_head"}}</th>
44-
{{end}}
45-
</tr>
46-
</thead>
4737
<tbody>
4838
{{range $branch := .Branches}}
4939
{{if ne .Name $.DefaultBranch}}
5040
<tr>
51-
<td>
41+
<td class="six wide">
5242
{{if .IsDeleted}}
5343
<s><a href="{{$.RepoLink}}/src/branch/{{.Name | EscapePound}}">{{.Name}}</a></s>
5444
<p class="info">{{$.i18n.Tr "repo.branch.deleted_by" .DeletedBranch.DeletedBy.Name}} {{TimeSinceUnix .DeletedBranch.DeletedUnix $.i18n.Lang}}</p>
@@ -60,7 +50,7 @@
6050
<p class="info"><i class="octicon octicon-git-commit"></i><a href="{{$.RepoLink}}/commit/{{.Commit.ID.String}}">{{ShortSha .Commit.ID.String}}</a> · <span class="commit-message">{{RenderCommitMessage .Commit.CommitMessage $.RepoLink $.Repository.ComposeMetas}}</span> · {{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Commit.Committer.When $.i18n.Lang}}</p>
6151
{{end}}
6252
</td>
63-
<td class="ui">
53+
<td class="two wide ui">
6454
{{if not .IsDeleted}}
6555
<div class="commit-divergence">
6656
<div class="bar-group">
@@ -74,7 +64,7 @@
7464
</div>
7565
{{end}}
7666
</td>
77-
<td class="right aligned">
67+
<td class="two wide right aligned">
7868
{{if not .LatestPullRequest}}
7969
{{if and (not .IsDeleted) $.AllowsPulls}}
8070
<a href="{{$.RepoLink}}/compare/{{$.DefaultBranch | EscapePound}}...{{if ne $.Repository.Owner.Name $.Owner.Name}}{{$.Owner.Name}}:{{end}}{{.Name | EscapePound}}">
@@ -93,7 +83,7 @@
9383
{{end}}
9484
</td>
9585
{{if and $.IsWriter (not $.IsMirror)}}
96-
<td class="right aligned">
86+
<td class="one wide right aligned">
9787
{{if .IsProtected}}
9888
<i class="octicon octicon-shield"></i>
9989
{{else if .IsDeleted}}

0 commit comments

Comments
 (0)