Simplify line numbering

This commit is contained in:
Robert Speicher 2015-06-15 17:32:37 -04:00
parent 15582293b9
commit da15428340

View file

@ -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.