@ -49,9 +49,7 @@
{{ svg "octicon-chevron-down" 1 8 }}
{{ svg "octicon-chevron-down" 1 8 }}
</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">
@ -87,7 +85,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>
@ -113,7 +111,6 @@
</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 id="diff-source- {{ $ i }} " class="file-body file-code has-context-menu code-diff {{ if $ .IsSplitStyle }} code-diff-split {{ else }} code-diff-unified {{ end }} ">
<div id="diff-source- {{ $ i }} " class="file-body file-code has-context-menu code-diff {{ if $ .IsSplitStyle }} code-diff-split {{ else }} code-diff-unified {{ end }} ">
{{ if $ file .IsBin }}
{{ if $ file .IsBin }}
<div class="diff-file-body binary" style="padding: 5px 10px;"> {{ $ .i18n .Tr "repo.diff.bin_not_shown" }} </div>
<div class="diff-file-body binary" style="padding: 5px 10px;"> {{ $ .i18n .Tr "repo.diff.bin_not_shown" }} </div>
@ -138,7 +135,6 @@
</table>
</table>
</div>
</div>
{{ end }}
{{ end }}
{{ end }}
</div>
</div>
</div>
</div>
{{ end }}
{{ end }}