summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-05-18 07:09:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-05-18 07:09:02 +0000
commit6e35d2f0e9f5573cb01f5c24169415dc2e8fa4e5 (patch)
tree998a7250a9a3b2c48ec3c7e7e78df5a28bca86dd
parent997bfbe78fd821dd79e45a2e8cba7b2ddbb92e95 (diff)
downloadredmine-6e35d2f0e9f5573cb01f5c24169415dc2e8fa4e5.tar.gz
redmine-6e35d2f0e9f5573cb01f5c24169415dc2e8fa4e5.zip
Highlighting of source link target line (#13746).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11857 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/common/_file.html.erb4
-rw-r--r--public/stylesheets/scm.css3
2 files changed, 5 insertions, 2 deletions
diff --git a/app/views/common/_file.html.erb b/app/views/common/_file.html.erb
index 22126b949..95e0fb998 100644
--- a/app/views/common/_file.html.erb
+++ b/app/views/common/_file.html.erb
@@ -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">
diff --git a/public/stylesheets/scm.css b/public/stylesheets/scm.css
index 7ae59abd2..de65941ed 100644
--- a/public/stylesheets/scm.css
+++ b/public/stylesheets/scm.css
@@ -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;}