code layout clean up app/views/common/_file.html.erb

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7858 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-11-20 04:17:19 +00:00
parent 05abcb0663
commit 2d7f0d66b2
1 changed files with 9 additions and 2 deletions

View File

@ -3,8 +3,15 @@
<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 %>
<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>