Skip to content
Snippets Groups Projects
Commit da154283 authored by Robert Speicher's avatar Robert Speicher
Browse files

Simplify line numbering

parent 15582293
No related branches found
No related tags found
1 merge request!820Refactor and spec line highlighting Javascript
.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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment