From 108df01b7134738f0d61d54c2c35fea7b4551071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauris=20Buk=C5=A1is-Haberkorns?= Date: Thu, 8 Nov 2018 23:23:07 +0200 Subject: [PATCH] Fix file edit change preview functionality --- templates/repo/editor/diff_preview.tmpl | 4 +--- templates/repo/editor/edit.tmpl | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/repo/editor/diff_preview.tmpl b/templates/repo/editor/diff_preview.tmpl index 06b4a2e830cc..b663e4e93d5a 100644 --- a/templates/repo/editor/diff_preview.tmpl +++ b/templates/repo/editor/diff_preview.tmpl @@ -3,9 +3,7 @@
- {{with .File}} - {{template "repo/diff/section_unified" .}} - {{end}} + {{template "repo/diff/section_unified" dict "file" .File "root" $}}
diff --git a/templates/repo/editor/edit.tmpl b/templates/repo/editor/edit.tmpl index b08838cac883..82656d65575b 100644 --- a/templates/repo/editor/edit.tmpl +++ b/templates/repo/editor/edit.tmpl @@ -30,7 +30,7 @@