diff options
author | Alexey Makhov <makhov.alex@gmail.com> | 2015-02-19 00:55:17 +0300 |
---|---|---|
committer | Alexey Makhov <makhov.alex@gmail.com> | 2015-02-19 00:55:17 +0300 |
commit | c0ad512398e0d8232f5e729f2c38e887e6d9329a (patch) | |
tree | b2313924f5d9ec4a62b44c70d78bf0923f96d6bd /templates | |
parent | 563e8b4ea98e57adf3992dcaef76b86d29c13cec (diff) | |
download | gitea-c0ad512398e0d8232f5e729f2c38e887e6d9329a.tar.gz gitea-c0ad512398e0d8232f5e729f2c38e887e6d9329a.zip |
remove not using vars
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/diff.tmpl | 6 |
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> |