From 4c28291a19714022a9c991984d14a26fb2413b06 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 26 Feb 2009 09:28:33 +0000 Subject: [PATCH] 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 --- app/views/common/_file.rhtml | 2 +- app/views/repositories/annotate.rhtml | 2 +- 2 files changed, 2 insertions(+), 2 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 @@ <% line_num = 1 %> <% syntax_highlight(filename, to_utf8(content)).each_line do |line| %> -<%= line_num %>
<%= line %>
+<%= line_num %>
<%= line %>
<% line_num += 1 %> <% end %> diff --git a/app/views/repositories/annotate.rhtml b/app/views/repositories/annotate.rhtml index 44b5a81a6..d0fb8cbf9 100644 --- a/app/views/repositories/annotate.rhtml +++ b/app/views/repositories/annotate.rhtml @@ -11,7 +11,7 @@ <% syntax_highlight(@path, to_utf8(@annotate.content)).each_line do |line| %> <% revision = @annotate.revisions[line_num-1] %> - <%= line_num %> + <%= line_num %> <%= (revision.identifier ? link_to(format_revision(revision.identifier), :action => 'revision', :id => @project, :rev => revision.identifier) : format_revision(revision.revision)) if revision %> <%= h(revision.author.to_s.split('<').first) if revision %> -- 2.39.5