summaryrefslogtreecommitdiffstats
path: root/templates/repo/diff.tmpl
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2015-02-04 19:52:31 -0500
committerUnknwon <joe2010xtmf@163.com>2015-02-04 19:52:31 -0500
commit7140f50637219cbaffcf21d5082cf6b5c9f1994c (patch)
treeb5a4fe2b0fa35dd0579ed390e5a550e752ab5735 /templates/repo/diff.tmpl
parente0329c0eb5eb54db81aab95bc2856b1d2036a022 (diff)
downloadgitea-7140f50637219cbaffcf21d5082cf6b5c9f1994c.tar.gz
gitea-7140f50637219cbaffcf21d5082cf6b5c9f1994c.zip
public/ng/js: script fix on #901
Diffstat (limited to 'templates/repo/diff.tmpl')
-rw-r--r--templates/repo/diff.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl
index ce31da6db5..3d4a8b1fa7 100644
--- a/templates/repo/diff.tmpl
+++ b/templates/repo/diff.tmpl
@@ -105,10 +105,10 @@
{{range $k, $line := $section.Lines}}
<tr class="{{DiffLineTypeToStr .Type}}-code nl-{{$i}} ol-{{$i}}">
<td class="lines-num lines-num-old">
- <span rel="L{{Add $i 1}}{{$j}}{{$k}}">{{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}}</span>
+ <span rel="diff-{{Add $i 1}}L{{$j}}{{$k}}">{{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}}</span>
</td>
<td class="lines-num lines-num-new">
- <span rel="L{{Add $i 1}}{{$j}}{{$k}}">{{if $line.RightIdx}}{{$line.RightIdx}}{{end}}</span>
+ <span rel="diff-{{Add $i 1}}L{{$j}}{{$k}}">{{if $line.RightIdx}}{{$line.RightIdx}}{{end}}</span>
</td>
<td class="lines-code">