@ -36,9 +36,9 @@
<ol class="diff-detail-box diff-stats detail-files hide" id="diff-files">
<ol class="diff-detail-box diff-stats detail-files hide" id="diff-files">
{{ range .Diff .Files }}
{{ range .Diff .Files }}
<li>
<li>
<div class="diff-counter count pull-right">
<div class="diff-counter pull-right">
{{ if not .IsBin }}
{{ if not .IsBin }}
{{ template "repo/diff/stats" . }}
{{ template "repo/diff/stats" dict "file" . "root" $ }}
{{ else }}
{{ else }}
<span> {{ $ .i18n .Tr "repo.diff.bin" }} </span>
<span> {{ $ .i18n .Tr "repo.diff.bin" }} </span>
{{ end }}
{{ end }}
@ -53,9 +53,9 @@
{{ if $ file .IsIncomplete }}
{{ if $ file .IsIncomplete }}
<div class="diff-file-box diff-box file-content">
<div class="diff-file-box diff-box file-content">
<h4 class="ui top attached normal header rounded">
<h4 class="ui top attached normal header rounded">
<div class="diff-counter count ui left">
<div class="diff-counter ui left">
{{ if not $ file .IsRenamed }}
{{ if not $ file .IsRenamed }}
{{ template "repo/diff/stats" . }}
{{ template "repo/diff/stats" dict "file" . "root" $ }}
{{ end }}
{{ end }}
</div>
</div>
<span class="file"> {{ $ file .Name }} </span>
<span class="file"> {{ $ file .Name }} </span>
@ -87,11 +87,11 @@
{{ svg "octicon-chevron-down" 1 8 }}
{{ svg "octicon-chevron-down" 1 8 }}
</a>
</a>
{{ end }}
{{ end }}
<div class="diff-counter count ">
<div class="diff-counter">
{{ if $ file .IsBin }}
{{ if $ file .IsBin }}
{{ $ .i18n .Tr "repo.diff.bin" }}
{{ $ .i18n .Tr "repo.diff.bin" }}
{{ else if not $ file .IsRenamed }}
{{ else if not $ file .IsRenamed }}
{{ template "repo/diff/stats" . }}
{{ template "repo/diff/stats" dict "file" . "root" $ }}
{{ end }}
{{ end }}
</div>
</div>
<span class="file"> {{ if $ file .IsRenamed }} {{ $ file .OldName }} → {{ end }} {{ $ file .Name }} {{ if .IsLFSFile }} ( {{ $ .i18n .Tr "repo.stored_lfs" }} ) {{ end }} </span>
<span class="file"> {{ if $ file .IsRenamed }} {{ $ file .OldName }} → {{ end }} {{ $ file .Name }} {{ if .IsLFSFile }} ( {{ $ .i18n .Tr "repo.stored_lfs" }} ) {{ end }} </span>