debian-mirror-gitlab/app/views/projects/blob/viewers/_highlight_embed.html.haml
2018-12-13 13:39:08 +05:30

9 lines
295 B
Text

.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 } }
%pre.code.highlight
%code
= blob.present.highlight