Commit dae9faf3 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #7519 from jvanbaarsen/enable-blame-highlighting

Enable highlighting for blame
parents 8aca1ff0 652de6f5
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
= @path = @path
%small= number_to_human_size @blob.size %small= number_to_human_size @blob.size
%span.options= render "projects/blob/actions" %span.options= render "projects/blob/actions"
.file-content.blame .file-content.blame.highlight
%table %table
- current_line = 1 - current_line = 1
- @blame.each do |commit, lines| - @blame.each do |commit, lines|
...@@ -33,7 +33,8 @@ ...@@ -33,7 +33,8 @@
- current_line += 1 - current_line += 1
%td.lines %td.lines
%pre %pre
:erb %code{ class: highlightjs_class(@blob.name) }
<% lines.each do |line| %> :erb
<%= line %> <% lines.each do |line| %>
<% end %> <%= line %>
<% end %>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment