File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 7676 {{$isImage := or (call $.IsBlobAnImage $blobBase) (call $.IsBlobAnImage $blobHead)}}
7777 {{$isCsv := (call $.IsCsvFile $file)}}
7878 {{$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}}>
8081 <h4 class="diff-file-header sticky-2nd-row ui top attached normal header df ac sb">
8182 <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">
9291 {{if $file.IsBin}}
9392 <span class="ml-1 mr-3">
9493 {{$.locale.Tr "repo.diff.bin"}}
You can’t perform that action at this time.
0 commit comments