2007-05-08 19:49:20 +04:00
|
|
|
<h2><%= render :partial => 'navigation', :locals => { :path => @path, :kind => 'file', :revision => @rev } %></h2>
|
|
|
|
|
2007-09-22 17:17:49 +04:00
|
|
|
<div class="autoscroll">
|
|
|
|
<table class="filecontent CodeRay">
|
2007-05-08 19:49:20 +04:00
|
|
|
<tbody>
|
|
|
|
<% line_num = 1 %>
|
2007-10-07 19:21:40 +04:00
|
|
|
<% syntax_highlight(@path, to_utf8(@content)).each_line do |line| %>
|
2007-05-08 19:49:20 +04:00
|
|
|
<tr>
|
|
|
|
<th class="line-num"><%= line_num %></th>
|
2007-08-16 00:20:18 +04:00
|
|
|
<td class="line-code"><pre><%= line %></pre></td>
|
2007-05-08 19:49:20 +04:00
|
|
|
</tr>
|
|
|
|
<% line_num += 1 %>
|
|
|
|
<% end %>
|
|
|
|
<tbody>
|
|
|
|
</table>
|
2007-09-22 17:17:49 +04:00
|
|
|
</div>
|
2007-05-08 19:49:20 +04:00
|
|
|
|
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= stylesheet_link_tag "scm" %>
|
|
|
|
<% end %>
|