File tree 1 file changed +10
-11
lines changed
1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 76
76
{{$isImage := or (call $.IsBlobAnImage $blobBase) (call $.IsBlobAnImage $blobHead)}}
77
77
{{$isCsv := (call $.IsCsvFile $file)}}
78
78
{{$showFileViewToggle := or $isImage (and (not $file.IsIncomplete) $isCsv)}}
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}}>
79
+ {{$isExpandable := or (gt $file.Addition 0) (gt $file.Deletion 0) $file.IsBin}}
80
+ <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 or ($file.ShouldBeHidden) (not $isExpandable)}}data-folded="true"{{end}}>
80
81
<h4 class="diff-file-header sticky-2nd-row ui top attached normal header df ac sb">
81
82
<div class="df ac">
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}}
91
- <div class="bold df ac">
83
+ <a role="button" class="fold-file muted mr-2" {{if not $isExpandable}}style="visibility: hidden"{{end}}>
84
+ {{if $file.ShouldBeHidden}}
85
+ {{svg "octicon-chevron-right" 18}}
86
+ {{else}}
87
+ {{svg "octicon-chevron-down" 18}}
88
+ {{end}}
89
+ </a>
90
+ <div class="bold df ac mono">
92
91
{{if $file.IsBin}}
93
92
<span class="ml-1 mr-3">
94
93
{{$.locale.Tr "repo.diff.bin"}}
You can’t perform that action at this time.
0 commit comments