]> source.dussan.org Git - redmine.git/commitdiff
Highlighting of source link target line for annotate view (#13746).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 18 May 2013 07:10:14 +0000 (07:10 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 18 May 2013 07:10:14 +0000 (07:10 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11858 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/repositories/annotate.html.erb

index 1c4df65c4e384230c6c00b7c158dbb95d274c5b3..ab9628e69b125d3364a2b9d11ffb69082764ef5b 100644 (file)
@@ -16,8 +16,8 @@
     <% line_num = 1; previous_revision = nil %>
     <% syntax_highlight_lines(@path, Redmine::CodesetUtil.to_utf8_by_setting(@annotate.content)).each do |line| %>
       <% revision = @annotate.revisions[line_num - 1] %>
-      <tr class="bloc-<%= revision.nil? ? 0 : colors[revision.identifier || revision.revision] %>">
-        <th class="line-num" id="L<%= line_num %>"><a href="#L<%= line_num %>"><%= line_num %></a></th>
+      <tr id="L<%= line_num %>" class="bloc-<%= revision.nil? ? 0 : colors[revision.identifier || revision.revision] %>">
+        <th class="line-num"><a href="#L<%= line_num %>"><%= line_num %></a></th>
         <td class="revision">
         <%= (revision.identifier ? link_to_revision(revision, @repository) : format_revision(revision)) if revision && revision != previous_revision %></td>
         <td class="author"><%= h(revision.author.to_s.split('<').first) if revision && revision != previous_revision %></td>