[refs #901] add anchor to lines

This commit is contained in:
Alexander Machehin 2013-02-08 16:25:05 +06:00
parent 53ecbd706b
commit d159948830
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ module GitHelper
def render_line_numbers(n)
res = ""
1.upto(n) {|i| res += "<span>#{i}</span><br/>" }
1.upto(n) {|i| res += "<span id='L#{i}'><a href='#L#{i}'>#{i}</a></span><br/>" }
res.html_safe
end