[refs #901] add anchor to lines
This commit is contained in:
parent
53ecbd706b
commit
d159948830
|
@ -31,7 +31,7 @@ module GitHelper
|
||||||
|
|
||||||
def render_line_numbers(n)
|
def render_line_numbers(n)
|
||||||
res = ""
|
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
|
res.html_safe
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue