aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/editor/diff_preview.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/editor/diff_preview.tmpl')
-rw-r--r--templates/repo/editor/diff_preview.tmpl4
1 files changed, 1 insertions, 3 deletions
diff --git a/templates/repo/editor/diff_preview.tmpl b/templates/repo/editor/diff_preview.tmpl
index 06b4a2e830..b663e4e93d 100644
--- a/templates/repo/editor/diff_preview.tmpl
+++ b/templates/repo/editor/diff_preview.tmpl
@@ -3,9 +3,7 @@
<div class="file-body file-code code-view code-diff">
<table>
<tbody>
- {{with .File}}
- {{template "repo/diff/section_unified" .}}
- {{end}}
+ {{template "repo/diff/section_unified" dict "file" .File "root" $}}
</tbody>
</table>
</div>