Skip to content
This repository was archived by the owner on Apr 12, 2020. It is now read-only.

Commit 76fed4a

Browse files
author
alexandresalome
committed
fix diff view of binary creation/deletion
1 parent 1316892 commit 76fed4a

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

Resources/views/default_theme.html.twig

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,16 @@
197197
<div class="file-changes">
198198
{% if file.isBinary %}
199199
<div class="blob-compare">
200-
<div class="old">
201-
{{ git_blob(file.oldBlob) }}
202-
</div>
203-
<div class="new">
204-
{{ git_blob(file.newBlob) }}
205-
</div>
200+
{% if file.modification or file.deletion %}
201+
<div class="old">
202+
{{ git_blob(file.oldBlob) }}
203+
</div>
204+
{% endif %}
205+
{% if file.modification or file.creation %}
206+
<div class="new">
207+
{{ git_blob(file.newBlob) }}
208+
</div>
209+
{% endif %}
206210
</div>
207211
{% else %}
208212
<table class="file-lines">

0 commit comments

Comments
 (0)