summaryrefslogtreecommitdiffstats
path: root/templates/repo/diff.tmpl
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-26 18:02:08 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-26 18:02:08 +0800
commit3a27a0c1462302c668168e77497339863f3576cc (patch)
tree40a0fbfe331d03c91bcfad21666a732718b37fdc /templates/repo/diff.tmpl
parent74b3c953def27d91761cb487c1984dcebd346d29 (diff)
downloadgitea-3a27a0c1462302c668168e77497339863f3576cc.tar.gz
gitea-3a27a0c1462302c668168e77497339863f3576cc.zip
improved diff
Diffstat (limited to 'templates/repo/diff.tmpl')
-rw-r--r--templates/repo/diff.tmpl6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl
index 2627c9e1aa..c05f4d2ffd 100644
--- a/templates/repo/diff.tmpl
+++ b/templates/repo/diff.tmpl
@@ -63,7 +63,8 @@
<div class="panel-body file-body file-code code-view code-diff">
<table>
<tbody>
- {{range .Content}}
+ {{range .Sections}}
+ {{range .Lines}}
<tr class="same-code nl-1 ol-1">
<td class="lines-num lines-num-old">
<span rel="L1"></span>
@@ -72,10 +73,11 @@
<span rel="L1"></span>
</td>
<td class="lines-code">
- <pre>{{.}}</pre>
+ <pre>{{.Content}}</pre>
</td>
</tr>
{{end}}
+ {{end}}
<!-- <tr class="same-code nl-2 ol-2">
<td class="lines-num lines-num-old">
<span rel="L1">2</span>