@@ -0,0 +1,11 | |||
|
1 | <div class="autoscroll"> | |
|
2 | <table class="filecontent CodeRay"> | |
|
3 | <tbody> | |
|
4 | <% line_num = 1 %> | |
|
5 | <% syntax_highlight(filename, to_utf8(content)).each_line do |line| %> | |
|
6 | <tr><th class="line-num" id="L<%= line_num %>"><%= line_num %></th><td class="line-code"><pre><%= line %></pre></td></tr> | |
|
7 | <% line_num += 1 %> | |
|
8 | <% end %> | |
|
9 | </tbody> | |
|
10 | </table> | |
|
11 | </div> |
@@ -1,17 +1,7 | |||
|
1 | 1 | <h2><%= render :partial => 'navigation', :locals => { :path => @path, :kind => 'file', :revision => @rev } %></h2> |
|
2 | 2 | |
|
3 | <div class="autoscroll"> | |
|
4 | <table class="filecontent CodeRay"> | |
|
5 | <tbody> | |
|
6 | <% line_num = 1 %> | |
|
7 | <% syntax_highlight(@path, to_utf8(@content)).each_line do |line| %> | |
|
8 | <tr><th class="line-num" id="L<%= line_num %>"><%= line_num %></th><td class="line-code"><pre><%= line %></pre></td></tr> | |
|
9 | <% line_num += 1 %> | |
|
10 | <% end %> | |
|
11 | </tbody> | |
|
12 | </table> | |
|
13 | </div> | |
|
3 | <%= render :partial => 'common/file', :locals => {:filename => @path, :content => @content} %> | |
|
14 | 4 | |
|
15 | 5 | <% content_for :header_tags do %> |
|
16 | 6 | <%= stylesheet_link_tag "scm" %> |
|
17 | 7 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now