File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 79
79
<div class="diff-file-box diff-box file-content {{TabSizeClass $.Editorconfig $file.Name}} mt-3" id="diff-{{$file.NameHash}}" data-old-filename="{{$file.OldName}}" data-new-filename="{{$file.Name}}" {{if $file.ShouldBeHidden}}data-folded="true"{{end}}>
80
80
<h4 class="diff-file-header sticky-2nd-row ui top attached normal header df ac sb">
81
81
<div class="df ac">
82
- <a role="button" class="fold-file muted mr-2">
83
- {{if $file.ShouldBeHidden}}
84
- {{svg "octicon-chevron-right" 18}}
85
- {{else}}
86
- {{svg "octicon-chevron-down" 18}}
87
- {{end}}
88
- </a>
82
+ {{if or (gt $file.Addition 0) (gt $file.Deletion 0) $file.IsBin}}
83
+ <a role="button" class="fold-file muted mr-2">
84
+ {{if $file.ShouldBeHidden}}
85
+ {{svg "octicon-chevron-right" 18}}
86
+ {{else}}
87
+ {{svg "octicon-chevron-down" 18}}
88
+ {{end}}
89
+ </a>
90
+ {{end}}
89
91
<div class="bold df ac">
90
92
{{if $file.IsBin}}
91
93
<span class="ml-1 mr-3">
You can’t perform that action at this time.
0 commit comments