From 05abcb0663fca6ed543e96f386c4ef80bcbde291 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 20 Nov 2011 04:16:39 +0000 Subject: [PATCH] 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 --- app/views/repositories/annotate.html.erb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 %> -- 2.39.5