diff options
Diffstat (limited to 'templates/repo/diff.tmpl')
-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 0b6d4f72..c85caa21 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}}"> </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}} |