[Branch View] Delete Table Header (#7622)
* add class trom table header to table body * remove table header
This commit is contained in:
parent
539acba997
commit
0b1a4c38d9
1 changed files with 4 additions and 14 deletions
|
@ -34,21 +34,11 @@
|
||||||
</h4>
|
</h4>
|
||||||
<div class="ui attached table segment">
|
<div class="ui attached table segment">
|
||||||
<table class="ui very basic striped fixed table single line">
|
<table class="ui very basic striped fixed table single line">
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th class="six wide">{{.i18n.Tr "repo.branch.name"}}</th>
|
|
||||||
<th class="two wide"></th>
|
|
||||||
<th class="two wide"></th>
|
|
||||||
{{if and $.IsWriter (not $.IsMirror)}}
|
|
||||||
<th class="one wide right aligned">{{.i18n.Tr "repo.branch.delete_head"}}</th>
|
|
||||||
{{end}}
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
<tbody>
|
||||||
{{range $branch := .Branches}}
|
{{range $branch := .Branches}}
|
||||||
{{if ne .Name $.DefaultBranch}}
|
{{if ne .Name $.DefaultBranch}}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="six wide">
|
||||||
{{if .IsDeleted}}
|
{{if .IsDeleted}}
|
||||||
<s><a href="{{$.RepoLink}}/src/branch/{{.Name | EscapePound}}">{{.Name}}</a></s>
|
<s><a href="{{$.RepoLink}}/src/branch/{{.Name | EscapePound}}">{{.Name}}</a></s>
|
||||||
<p class="info">{{$.i18n.Tr "repo.branch.deleted_by" .DeletedBranch.DeletedBy.Name}} {{TimeSinceUnix .DeletedBranch.DeletedUnix $.i18n.Lang}}</p>
|
<p class="info">{{$.i18n.Tr "repo.branch.deleted_by" .DeletedBranch.DeletedBy.Name}} {{TimeSinceUnix .DeletedBranch.DeletedUnix $.i18n.Lang}}</p>
|
||||||
|
@ -60,7 +50,7 @@
|
||||||
<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>
|
<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>
|
||||||
{{end}}
|
{{end}}
|
||||||
</td>
|
</td>
|
||||||
<td class="ui">
|
<td class="two wide ui">
|
||||||
{{if not .IsDeleted}}
|
{{if not .IsDeleted}}
|
||||||
<div class="commit-divergence">
|
<div class="commit-divergence">
|
||||||
<div class="bar-group">
|
<div class="bar-group">
|
||||||
|
@ -74,7 +64,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</td>
|
</td>
|
||||||
<td class="right aligned">
|
<td class="two wide right aligned">
|
||||||
{{if not .LatestPullRequest}}
|
{{if not .LatestPullRequest}}
|
||||||
{{if and (not .IsDeleted) $.AllowsPulls}}
|
{{if and (not .IsDeleted) $.AllowsPulls}}
|
||||||
<a href="{{$.RepoLink}}/compare/{{$.DefaultBranch | EscapePound}}...{{if ne $.Repository.Owner.Name $.Owner.Name}}{{$.Owner.Name}}:{{end}}{{.Name | EscapePound}}">
|
<a href="{{$.RepoLink}}/compare/{{$.DefaultBranch | EscapePound}}...{{if ne $.Repository.Owner.Name $.Owner.Name}}{{$.Owner.Name}}:{{end}}{{.Name | EscapePound}}">
|
||||||
|
@ -93,7 +83,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
</td>
|
</td>
|
||||||
{{if and $.IsWriter (not $.IsMirror)}}
|
{{if and $.IsWriter (not $.IsMirror)}}
|
||||||
<td class="right aligned">
|
<td class="one wide right aligned">
|
||||||
{{if .IsProtected}}
|
{{if .IsProtected}}
|
||||||
<i class="octicon octicon-shield"></i>
|
<i class="octicon octicon-shield"></i>
|
||||||
{{else if .IsDeleted}}
|
{{else if .IsDeleted}}
|
||||||
|
|
Loading…
Reference in a new issue