summaryrefslogtreecommitdiffstats
path: root/app/views/common
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-02-26 09:28:33 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-02-26 09:28:33 +0000
commit4c28291a19714022a9c991984d14a26fb2413b06 (patch)
tree93213ac0ca9b9eb01a951ff5e82b6f27b3a0e5d6 /app/views/common
parent589320337db0a242f8adb2150996f6d038aaf9ad (diff)
downloadredmine-4c28291a19714022a9c991984d14a26fb2413b06.tar.gz
redmine-4c28291a19714022a9c991984d14a26fb2413b06.zip
Clickable/linkable line #'s while browsing the repo or viewing a text file (#2835).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2527 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/common')
-rw-r--r--app/views/common/_file.rhtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/common/_file.rhtml b/app/views/common/_file.rhtml
index 43f5c6c4b..599a17377 100644
--- a/app/views/common/_file.rhtml
+++ b/app/views/common/_file.rhtml
@@ -3,7 +3,7 @@
<tbody>
<% line_num = 1 %>
<% syntax_highlight(filename, 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>
+<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>