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 @@ <% line_num = 1 %> <% syntax_highlight_lines(filename, Redmine::CodesetUtil.to_utf8_by_setting(content)).each do |line| %> - - + + <%= line_num %> 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;}