Simplify line numbering
This commit is contained in:
parent
15582293b9
commit
da15428340
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
.file-content.code{class: user_color_scheme_class}
|
||||
.line-numbers
|
||||
- if blob.data.present?
|
||||
- blob.data.lines.to_a.size.times do |index|
|
||||
- blob.data.lines.each_index do |index|
|
||||
- offset = defined?(first_line_number) ? first_line_number : 1
|
||||
- i = index + offset
|
||||
-# We're not using `link_to` because it is too slow once we get to thousands of lines.
|
||||
|
|
Loading…
Reference in a new issue