mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-19 01:26:08 +10:00
Merge pull request #7519 from jvanbaarsen/enable-blame-highlighting
Enable highlighting for blame
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
= @path
|
||||
%small= number_to_human_size @blob.size
|
||||
%span.options= render "projects/blob/actions"
|
||||
.file-content.blame
|
||||
.file-content.blame.highlight
|
||||
%table
|
||||
- current_line = 1
|
||||
- @blame.each do |commit, lines|
|
||||
@@ -33,7 +33,8 @@
|
||||
- current_line += 1
|
||||
%td.lines
|
||||
%pre
|
||||
:erb
|
||||
<% lines.each do |line| %>
|
||||
<%= line %>
|
||||
<% end %>
|
||||
%code{ class: highlightjs_class(@blob.name) }
|
||||
:erb
|
||||
<% lines.each do |line| %>
|
||||
<%= line %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user