From 12e1499b06ef260ee1fed8addd62b940c55b9ab3 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 18 Sep 2013 03:36:49 +0000 Subject: [PATCH] code format cleanup app/views/repositories/annotate.html.erb (#14931) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12138 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/repositories/annotate.html.erb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/views/repositories/annotate.html.erb b/app/views/repositories/annotate.html.erb index ab9628e69..3ad9ceac6 100644 --- a/app/views/repositories/annotate.html.erb +++ b/app/views/repositories/annotate.html.erb @@ -19,8 +19,16 @@ <%= line_num %> - <%= (revision.identifier ? link_to_revision(revision, @repository) : format_revision(revision)) if revision && revision != previous_revision %> - <%= h(revision.author.to_s.split('<').first) if revision && revision != previous_revision %> + <% if revision && revision != previous_revision %> + <%= revision.identifier ? + link_to_revision(revision, @repository) : format_revision(revision) %> + <% end %> + + + <% if revision && revision != previous_revision %> + <%= h(revision.author.to_s.split('<').first) %> + <% end %> +
<%= line.html_safe %>
<% line_num += 1; previous_revision = revision %> -- 2.39.5