Skip to content

Commit a19138c

Browse files
6543lunny
authored andcommitted
[Branch View] Protection Symbole (delete dublicate) (#7624)
* delet protectin symbol on "action column" * code format
1 parent cbf231a commit a19138c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

templates/repo/branch/list.tmpl

+3-5
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
</div>
6060
<div class="bar-group">
6161
<div class="count count-ahead">{{.CommitsAhead}}</div>
62-
<div class="bar bar-ahead" style="width: {{percentage .CommitsAhead .CommitsBehind .CommitsAhead}}%"></div>
62+
<div class="bar bar-ahead" style="width: {{percentage .CommitsAhead .CommitsBehind .CommitsAhead}}%"></div>
6363
</div>
6464
</div>
6565
{{end}}
@@ -84,11 +84,9 @@
8484
</td>
8585
{{if and $.IsWriter (not $.IsMirror)}}
8686
<td class="one wide right aligned">
87-
{{if .IsProtected}}
88-
<i class="octicon octicon-shield"></i>
89-
{{else if .IsDeleted}}
87+
{{if and .IsDeleted (not .IsProtected)}}
9088
<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>
91-
{{else}}
89+
{{else if (not .IsProtected)}}
9290
<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>
9391
{{end}}
9492
</td>

0 commit comments

Comments
 (0)