diff --git a/app/views/repositories/annotate.html.erb b/app/views/repositories/annotate.html.erb index 498507148..a9fe85f12 100644 --- a/app/views/repositories/annotate.html.erb +++ b/app/views/repositories/annotate.html.erb @@ -15,15 +15,15 @@ <% line_num = 1 %> <% syntax_highlight(@path, to_utf8(@annotate.content)).each_line do |line| %> - <% revision = @annotate.revisions[line_num-1] %> - - <%= line_num %> - - <%= (revision.identifier ? link_to_revision(revision, @project) : format_revision(revision)) if revision %> - <%= h(revision.author.to_s.split('<').first) if revision %> -
<%= line %>
- - <% line_num += 1 %> + <% revision = @annotate.revisions[line_num - 1] %> + + <%= line_num %> + + <%= (revision.identifier ? link_to_revision(revision, @project) : format_revision(revision)) if revision %> + <%= h(revision.author.to_s.split('<').first) if revision %> +
<%= line %>
+ + <% line_num += 1 %> <% end %>