diff options
author | Alexey Makhov <makhov.alex@gmail.com> | 2015-02-04 22:06:40 +0300 |
---|---|---|
committer | Alexey Makhov <makhov.alex@gmail.com> | 2015-02-04 22:06:40 +0300 |
commit | e91b28eb9bd7b8e30a68e51e9c4d0bec4cf66624 (patch) | |
tree | 769dbdb42c593e16c8ec30c3fa6dda0efb2c5c20 /templates | |
parent | 5d4425bbbc8a6747f53e488d230dbae33ebd935e (diff) | |
download | gitea-e91b28eb9bd7b8e30a68e51e9c4d0bec4cf66624.tar.gz gitea-e91b28eb9bd7b8e30a68e51e9c4d0bec4cf66624.zip |
little fix
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/diff.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl index 13b78a38b9..ce31da6db5 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}}{{Add $j 1}}{{$k}}">{{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}}</span> + <span rel="L{{Add $i 1}}{{$j}}{{$k}}">{{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}}</span> </td> <td class="lines-num lines-num-new"> - <span rel="L{{Add $i 1}}{{Add $j 1}}{{$k}}">{{if $line.RightIdx}}{{$line.RightIdx}}{{end}}</span> + <span rel="L{{Add $i 1}}{{$j}}{{$k}}">{{if $line.RightIdx}}{{$line.RightIdx}}{{end}}</span> </td> <td class="lines-code"> |