]> source.dussan.org Git - gitea.git/commitdiff
remove not using vars
authorAlexey Makhov <makhov.alex@gmail.com>
Wed, 18 Feb 2015 21:55:17 +0000 (00:55 +0300)
committerAlexey Makhov <makhov.alex@gmail.com>
Wed, 18 Feb 2015 21:55:17 +0000 (00:55 +0300)
templates/repo/diff.tmpl

index 2bc5c7d7d7d98919ee37836ac29b6f1aeef46860..7da932a4f8e2b09df2a1e6ff60becf74b33b7ae2 100644 (file)
                 {{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>