aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-06-14 05:07:09 -0400
committerBo-Yi Wu <appleboy.tw@gmail.com>2017-06-14 04:07:09 -0500
commit57cabb3ad3d296c2f65c157348cdf3b32e17e8c4 (patch)
tree23747d44f9cff6201ff9027bcebddd60665c2f96 /templates
parent274149dd14909d4ba87f25f8e5160f51ca5f7265 (diff)
downloadgitea-57cabb3ad3d296c2f65c157348cdf3b32e17e8c4.tar.gz
gitea-57cabb3ad3d296c2f65c157348cdf3b32e17e8c4.zip
Fix diff of renamed and modified file (#1967)
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/diff/box.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl
index 90def1f843..40675d75b8 100644
--- a/templates/repo/diff/box.tmpl
+++ b/templates/repo/diff/box.tmpl
@@ -78,7 +78,7 @@
{{end}}
</h4>
<div class="ui attached table segment">
- {{if not $file.IsRenamed}}
+ {{if ne $file.Type 4}}
{{$isImage := (call $.IsImageFile $file.Name)}}
{{if and $isImage}}
<div class="center">