Mercurial > hg > soundsoftware-site
view app/views/common/_file.html.erb @ 1559:21098b932cb8 feature_1136
Separate out git repo dir and work dir (so as to serve repo dir only)
author | Chris Cannam |
---|---|
date | Thu, 14 Jan 2016 10:27:25 +0000 |
parents | 261b3d9a4903 |
children |
line wrap: on
line source
<div class="autoscroll"> <table class="filecontent syntaxhl"> <tbody> <% line_num = 1 %> <% syntax_highlight_lines(filename, Redmine::CodesetUtil.to_utf8_by_setting(content)).each do |line| %> <tr id="L<%= line_num %>"> <th class="line-num"> <a href="#L<%= line_num %>"><%= line_num %></a> </th> <td class="line-code"> <pre><%= line.html_safe %></pre> </td> </tr> <% line_num += 1 %> <% end %> </tbody> </table> </div>