summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-26 16:41:16 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-26 16:41:16 -0400
commitdd6246877d8dd2de5f71f51c58a90eb155785c34 (patch)
tree12cd46c291c2e2adf61eeccb638b771a66761d52 /templates/repo
parent4b9eef50c9bf91e6ca2d85d9e63dc69b0ffba737 (diff)
downloadgitea-dd6246877d8dd2de5f71f51c58a90eb155785c34.tar.gz
gitea-dd6246877d8dd2de5f71f51c58a90eb155785c34.zip
Almost done diff page
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/diff.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl
index ab13c40174..38f19b36f5 100644
--- a/templates/repo/diff.tmpl
+++ b/templates/repo/diff.tmpl
@@ -65,12 +65,12 @@
<tbody>
{{range .Sections}}
{{range .Lines}}
- <tr class="same-code nl-1 ol-1">
+ <tr class="{{DiffLineTypeToStr .Type}}-code nl-1 ol-1">
<td class="lines-num lines-num-old">
- <span rel="L1"></span>
+ <span rel="L1">{{if .LeftIdx}}{{.LeftIdx}}{{end}}</span>
</td>
<td class="lines-num lines-num-new">
- <span rel="L1"></span>
+ <span rel="L1">{{if .RightIdx}}{{.RightIdx}}{{end}}</span>
</td>
<td class="lines-code">
<pre>{{.Content}}</pre>