From: Jean-Philippe Lang Date: Thu, 26 Feb 2009 09:28:33 +0000 (+0000) Subject: Clickable/linkable line #'s while browsing the repo or viewing a text file (#2835). X-Git-Tag: 0.9.0~622 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4c28291a19714022a9c991984d14a26fb2413b06;p=redmine.git 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 --- 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 %>