summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorManuel Kuhlmann <mkuhlmann@users.noreply.github.com>2017-01-05 03:04:41 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2017-01-05 10:04:41 +0800
commiteb9ce39bb70f5f5d5f13d51acf46586c65df1a77 (patch)
tree50f830e205ad19864fc104a9139c43e654d5113e /templates
parenta5e07da8bedf5da47a4fec3dda6eaf2e54d69921 (diff)
downloadgitea-eb9ce39bb70f5f5d5f13d51acf46586c65df1a77.tar.gz
gitea-eb9ce39bb70f5f5d5f13d51acf46586c65df1a77.zip
Fix unified diff view styling (#585)
Signed-off-by: Manuel Kuhlmann <manuel@mkuhlmann.org>
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 9445e7846c..90def1f843 100644
--- a/templates/repo/diff/box.tmpl
+++ b/templates/repo/diff/box.tmpl
@@ -85,7 +85,7 @@
<img src="{{$.RawPath}}/{{EscapePound .Name}}">
</div>
{{else}}
- <div class="file-body file-code code-view code-diff">
+ <div class="file-body file-code code-view code-diff {{if $.IsSplitStyle}}code-diff-split{{else}}code-diff-unified{{end}}">
<table>
<tbody>
{{if $.IsSplitStyle}}