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 %>