diff options
author | Lauris BH <lauris@nix.lv> | 2018-11-09 14:05:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-09 14:05:43 +0200 |
commit | 7dd31eb8fb6a00d69d9334f34e15ada220704f56 (patch) | |
tree | 93a1b71d8a2b69937bae5229b51231fb391da079 /templates/repo/editor/diff_preview.tmpl | |
parent | 2852c3576a33aeb6db295beb26888a09f9b27251 (diff) | |
download | gitea-7dd31eb8fb6a00d69d9334f34e15ada220704f56.tar.gz gitea-7dd31eb8fb6a00d69d9334f34e15ada220704f56.zip |
Fix file edit change preview functionality (#5300)
Diffstat (limited to 'templates/repo/editor/diff_preview.tmpl')
-rw-r--r-- | templates/repo/editor/diff_preview.tmpl | 4 |
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> |