提交 652de6f5 编写于 作者: J Jeroen van Baarsen

Enable highlighting for blame

Fixes #3675
Signed-off-by: NJeroen van Baarsen <jeroenvanbaarsen@gmail.com>
上级 cb33279a
......@@ -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 %>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册