##// END OF EJS Templates
code layout clean up app/views/common/_file.html.erb...
Toshi MARUYAMA -
r7738:2d7f0d66b259
parent child
Show More
@@ -3,8 +3,15
3 <tbody>
3 <tbody>
4 <% line_num = 1 %>
4 <% line_num = 1 %>
5 <% syntax_highlight(filename, to_utf8(content)).each_line do |line| %>
5 <% syntax_highlight(filename, to_utf8(content)).each_line do |line| %>
6 <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>
6 <tr>
7 <% line_num += 1 %>
7 <th class="line-num" id="L<%= line_num %>">
8 <a href="#L<%= line_num %>"><%= line_num %></a>
9 </th>
10 <td class="line-code">
11 <pre><%= line %></pre>
12 </td>
13 </tr>
14 <% line_num += 1 %>
8 <% end %>
15 <% end %>
9 </tbody>
16 </tbody>
10 </table>
17 </table>
General Comments 0
You need to be logged in to leave comments. Login now