Skip to content

Commit 02f098e

Browse files
committed
delet protectin symbol on "action column"
1 parent bebc6a3 commit 02f098e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

templates/repo/branch/list.tmpl

+2-4
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,9 @@
9494
</td>
9595
{{if and $.IsWriter (not $.IsMirror)}}
9696
<td class="right aligned">
97-
{{if .IsProtected}}
98-
<i class="octicon octicon-shield"></i>
99-
{{else if .IsDeleted}}
97+
{{if and .IsDeleted (not .IsProtected)}}
10098
<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)}}
102100
<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>
103101
{{end}}
104102
</td>

0 commit comments

Comments
 (0)