gitlab-org--gitlab-foss/app/views/projects/blob/viewers/_highlight_embed.html.haml

8 lines
311 B
Text
Raw Normal View History

2018-02-06 08:33:18 -05:00
.file-content.code.js-syntax-highlight
.line-numbers
- if blob.data.present?
- blob.data.each_line.each_with_index do |_, index|
%span.diff-line-num= index + 1
.blob-content{ data: { blob_id: blob.id } }
= highlight(blob.path, blob.data, repository: nil, plain: blob.no_highlighting?)