File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 94
94
</td>
95
95
{{if and $.IsWriter (not $.IsMirror)}}
96
96
<td class="right aligned">
97
- {{if .IsProtected}}
98
- <i class="octicon octicon-shield"></i>
99
- {{else if .IsDeleted}}
97
+ {{if and .IsDeleted (not .IsProtected)}}
100
98
<a class="ui basic jump button icon poping up undo-button" href data-url="{{$.Link}}/restore?branch_id={{.DeletedBranch.ID | urlquery}}&name={{.DeletedBranch.Name | urlquery}}" data-content="{{$.i18n.Tr "repo.branch.restore" (.Name | EscapePound)}}" data-variation="tiny inverted" data-position="top right"><i class="octicon octicon-reply text blue"></i></a>
101
- {{else}}
99
+ {{else if (not .IsProtected) }}
102
100
<a class="ui basic jump button icon poping up delete-branch-button" href data-url="{{$.Link}}/delete?name={{.Name | urlquery}}" data-content="{{$.i18n.Tr "repo.branch.delete" (.Name | EscapePound)}}" data-variation="tiny inverted" data-position="top right" data-name="{{.Name}}"><i class="trash icon text red"></i></a>
103
101
{{end}}
104
102
</td>
You can’t perform that action at this time.
0 commit comments