File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 12
12
<table class="ui very basic striped fixed table single line">
13
13
<tbody>
14
14
<tr>
15
- <td>{{.DefaultBranch}}</td>
15
+ <td>
16
+ {{if .IsProtected}}
17
+ <i class="octicon octicon-shield"></i>
18
+ {{end}}
19
+ {{.DefaultBranch}}
20
+ </td>
16
21
</tr>
17
22
</tbody>
18
23
</table>
43
48
<s><a href="{{$.RepoLink}}/src/branch/{{.Name | EscapePound}}">{{.Name}}</a></s>
44
49
<p class="time">{{$.i18n.Tr "repo.branch.deleted_by" .DeletedBranch.DeletedBy.Name}} {{TimeSinceUnix .DeletedBranch.DeletedUnix $.i18n.Lang}}</p>
45
50
{{else}}
51
+ {{if .IsProtected}}
52
+ <i class="octicon octicon-shield"></i>
53
+ {{end}}
46
54
<a href="{{$.RepoLink}}/src/branch/{{.Name | EscapePound}}">{{.Name}}</a>
47
55
<p class="time">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Commit.Committer.When $.i18n.Lang}}</p>
48
56
{{end}}
81
89
</td>
82
90
{{if and $.IsWriter (not $.IsMirror) (not $.Repository.IsArchived)}}
83
91
<td class="right aligned">
84
- {{if .IsProtected}}
85
- <i class="octicon octicon-shield"></i>
86
- {{else if .IsDeleted}}
92
+ {{if and .IsDeleted (not .IsProtected)}}
87
93
<a class="undo-button" href data-url="{{$.Link}}/restore?branch_id={{.DeletedBranch.ID | urlquery}}&name={{.DeletedBranch.Name | urlquery}}"><i class="octicon octicon-reply"></i></a>
88
- {{else}}
94
+ {{else if (not .IsProtected) }}
89
95
<a class="delete-branch-button" href data-url="{{$.Link}}/delete?name={{.Name | urlquery}}" data-name="{{.Name}}"><i class="trash icon text red"></i></a>
90
96
{{end}}
91
97
</td>
You can’t perform that action at this time.
0 commit comments