summaryrefslogtreecommitdiffstats
path: root/app/views/repositories/entry.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/repositories/entry.rhtml')
-rw-r--r--app/views/repositories/entry.rhtml17
1 files changed, 7 insertions, 10 deletions
diff --git a/app/views/repositories/entry.rhtml b/app/views/repositories/entry.rhtml
index 41565a232..309da76fc 100644
--- a/app/views/repositories/entry.rhtml
+++ b/app/views/repositories/entry.rhtml
@@ -2,16 +2,13 @@
<div class="autoscroll">
<table class="filecontent CodeRay">
- <tbody>
- <% line_num = 1 %>
- <% syntax_highlight(@path, to_utf8(@content)).each_line do |line| %>
- <tr>
- <th class="line-num"><%= line_num %></th>
- <td class="line-code"><pre><%= line %></pre></td>
- </tr>
- <% line_num += 1 %>
- <% end %>
- </tbody>
+<tbody>
+<% line_num = 1 %>
+<% syntax_highlight(@path, to_utf8(@content)).each_line do |line| %>
+<tr><th class="line-num" id="L<%= line_num %>"><%= line_num %></th><td class="line-code"><pre><%= line %></pre></td></tr>
+<% line_num += 1 %>
+<% end %>
+</tbody>
</table>
</div>