From: Toshi MARUYAMA Date: Sun, 20 Nov 2011 04:16:39 +0000 (+0000) Subject: code layout clean up app/views/repositories/annotate.html.erb X-Git-Tag: 1.3.0~155 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=05abcb0663fca6ed543e96f386c4ef80bcbde291;p=redmine.git code layout clean up app/views/repositories/annotate.html.erb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7857 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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 %>