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

app/views/common/_file.html.erb
public/stylesheets/scm.css

index 22126b949dc0e24ba406c0e848fea8cb9184b7e7..95e0fb998ff43416dabb6397539fec981c19313f 100644 (file)
@@ -3,8 +3,8 @@
 <tbody>
 <% line_num = 1 %>
 <% syntax_highlight_lines(filename, Redmine::CodesetUtil.to_utf8_by_setting(content)).each do |line| %>
-  <tr>
-    <th class="line-num" id="L<%= line_num %>">
+  <tr id="L<%= line_num %>">
+    <th class="line-num">
       <a href="#L<%= line_num %>"><%= line_num %></a>
     </th>
     <td class="line-code">
index 7ae59abd2921c6c56e379e71312ef2bac2f475f2..de65941ed0539d2593795856a0d5fa13f517b542 100644 (file)
@@ -64,6 +64,9 @@ table.filecontent td.line-code pre {
     font-family:"Liberation Mono", Courier, monospace; font-size:12px;
 }
 
+table.filecontent tr:target th.line-num { background-color:#E0E0E0; color: #777; }
+table.filecontent tr:target td.line-code { background-color:#DDEEFF; }
+
 /* 12 different colors for the annonate view */
 table.annotate tr.bloc-0 {background: #FFFFBF;}
 table.annotate tr.bloc-1 {background: #EABFFF;}