summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAlexey Makhov <makhov.alex@gmail.com>2015-02-19 00:55:17 +0300
committerAlexey Makhov <makhov.alex@gmail.com>2015-02-19 00:55:17 +0300
commitc0ad512398e0d8232f5e729f2c38e887e6d9329a (patch)
treeb2313924f5d9ec4a62b44c70d78bf0923f96d6bd /templates
parent563e8b4ea98e57adf3992dcaef76b86d29c13cec (diff)
downloadgitea-c0ad512398e0d8232f5e729f2c38e887e6d9329a.tar.gz
gitea-c0ad512398e0d8232f5e729f2c38e887e6d9329a.zip
remove not using vars
Diffstat (limited to 'templates')
-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 2bc5c7d7d7..7da932a4f8 100644
--- a/templates/repo/diff.tmpl
+++ b/templates/repo/diff.tmpl
@@ -105,9 +105,9 @@
{{else}}
<table>
<tbody>
- {{range $j, $section := $file.Sections}}
- {{range $k, $line := $section.Lines}}
- <tr class="{{DiffLineTypeToStr .Type}}-code nl-{{$i}} ol-{{$i}}">
+ {{range .Sections}}
+ {{range $k, $line := .Lines}}
+ <tr class="{{DiffLineTypeToStr .Type}}-code nl-{{$k}} ol-{{$k}}">
<td class="lines-num lines-num-old">
<span rel="{{if $line.LeftIdx}}diff-L{{Sha1 $file.Name}}{{$line.LeftIdx}}{{end}}">{{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}}</span>
</td>