@ -49,9 +49,7 @@
{{svg "octicon-chevron-down" 18}}
{{svg "octicon-chevron-down" 18}}
</a>
</a>
<div class="bold ui left df ac">
<div class="bold ui left df ac">
{{if not $ file . IsRenamed }}
{{template "repo/diff/stats" dict "file" . "root" $}}
{{template "repo/diff/stats" dict "file" . "root" $}}
{{end}}
</div>
</div>
<span class="file mono">{{ $ file . Name }}</span>
<span class="file mono">{{ $ file . Name }}</span>
<div class="diff-file-header-actions df ac">
<div class="diff-file-header-actions df ac">
@ -85,7 +83,7 @@
<div class="bold df ac">
<div class="bold df ac">
{{if $ file . IsBin }}
{{if $ file . IsBin }}
{{$.i18n.Tr "repo.diff.bin"}}
{{$.i18n.Tr "repo.diff.bin"}}
{{else if not $ file . IsRenamed }}
{{else }}
{{template "repo/diff/stats" dict "file" . "root" $}}
{{template "repo/diff/stats" dict "file" . "root" $}}
{{end}}
{{end}}
</div>
</div>
@ -105,23 +103,21 @@
</div>
</div>
</h4>
</h4>
<div class="diff-file-body ui attached unstackable table segment">
<div class="diff-file-body ui attached unstackable table segment">
{{if ne $ file . Type 4}}
<div class="file-body file-code has-context-menu{{if not $ isImage }} code-diff{{end}}{{if $.IsSplitStyle}} code-diff-split{{else}} code-diff-unified{{end}}{{if $ isImage }} py-4{{end}}">
<div class="file-body file-code has-context-menu{{if not $ isImage }} code-diff{{end}}{{if $.IsSplitStyle}} code-diff-split{{else}} code-diff-unified{{end}}{{if $ isImage }} py-4{{end}}">
<table class="chroma{{if $ isImage }} w-100{{end}}">
<table class="chroma{{if $ isImage }} w-100{{end}}">
<tbody>
<tbody>
{{if $ isImage }}
{{if $ isImage }}
{{template "repo/diff/image_diff" dict "file" . "root" $}}
{{template "repo/diff/image_diff" dict "file" . "root" $}}
{{else}}
{{if $.IsSplitStyle}}
{{template "repo/diff/section_split" dict "file" . "root" $}}
{{else}}
{{else}}
{{if $.IsSplitStyle}}
{{template "repo/diff/section_unified" dict "file" . "root" $}}
{{template "repo/diff/section_split" dict "file" . "root" $}}
{{else}}
{{template "repo/diff/section_unified" dict "file" . "root" $}}
{{end}}
{{end}}
{{end}}
</tbody>
{{end}}
</t able >
</tbody>
</ div >
</table>
{{end}}
</div>
</div>
</div>
</div>
</div>
{{end}}
{{end}}