aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/diff.tmpl
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-13 12:40:32 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-13 12:40:32 -0400
commit98dbbae2efd5c232d94f5e4d8df9d388cace2ebc (patch)
tree262ea9952e6c9f960ca86e839fb1f23cc8ee898c /templates/repo/diff.tmpl
parentc117f9e73f148468c624f31be237af7a691533a0 (diff)
downloadgitea-98dbbae2efd5c232d94f5e4d8df9d388cace2ebc.tar.gz
gitea-98dbbae2efd5c232d94f5e4d8df9d388cace2ebc.zip
Fix #166
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 0b6d4f722e..c85caa21ec 100644
--- a/templates/repo/diff.tmpl
+++ b/templates/repo/diff.tmpl
@@ -51,14 +51,14 @@
</div>
<!-- todo finish all file status, now modify, add, delete and rename -->
<span class="status {{DiffTypeToStr .Type}}" data-toggle="tooltip" data-placement="right" title="{{DiffTypeToStr .Type}}">&nbsp;</span>
- <a class="file" href="#diff-1">{{.Name}}</a>
+ <a class="file" href="#diff-{{.Index}}">{{.Name}}</a>
</li>
{{end}}
</ol>
</div>
{{range .Diff.Files}}
- <div class="panel panel-default diff-file-box diff-box file-content" id="diff-2">
+ <div class="panel panel-default diff-file-box diff-box file-content" id="diff-{{.Index}}">
<div class="panel-heading">
<div class="diff-counter count pull-left">
{{if not .IsBin}}