socialforge/app/views/common/_file.html.erb

19 lines
565 B
Plaintext
Raw Normal View History

2013-08-01 10:33:49 +08:00
<div class="autoscroll">
<table class="filecontent syntaxhl" >
2013-08-01 10:33:49 +08:00
<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 %>" style="vertical-align: top;">
<a href="#L<%= line_num %>" style="padding-top: 0px;"><%= line_num %></a>
2013-08-01 10:33:49 +08:00
</th>
<td class="line-code">
<pre style="width:auto;white-space: nowrap;overflow: auto; "><%= line.html_safe %></pre>
2013-08-01 10:33:49 +08:00
</td>
</tr>
<% line_num += 1 %>
<% end %>
</tbody>
</table>
</div>