Mercurial > hg > soundsoftware-site
diff app/views/common/_file.html.erb @ 908:c6c2cbd0afee redmine-1.3
Rename .rhtml files to .html.erb in preparation for merge
author | Chris Cannam |
---|---|
date | Fri, 24 Feb 2012 18:36:29 +0000 |
parents | app/views/common/_file.rhtml@513646585e45 |
children | cbb26bc654de |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/common/_file.html.erb Fri Feb 24 18:36:29 2012 +0000 @@ -0,0 +1,11 @@ +<div class="autoscroll"> +<table class="filecontent syntaxhl"> +<tbody> +<% line_num = 1 %> +<% syntax_highlight(filename, to_utf8(content)).each_line do |line| %> +<tr><th class="line-num" id="L<%= line_num %>"><a href="#L<%= line_num %>"><%= line_num %></a></th><td class="line-code"><pre><%= line %></pre></td></tr> +<% line_num += 1 %> +<% end %> +</tbody> +</table> +</div>