File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 59
59
</div>
60
60
<div class="bar-group">
61
61
<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>
63
63
</div>
64
64
</div>
65
65
{{end}}
84
84
</td>
85
85
{{if and $.IsWriter (not $.IsMirror)}}
86
86
<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)}}
90
88
<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) }}
92
90
<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>
93
91
{{end}}
94
92
</td>
You can’t perform that action at this time.
0 commit comments