summaryrefslogtreecommitdiff
path: root/app/views/projects/blame
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-01-27 16:15:24 +0100
committerDouwe Maan <douwe@selenight.nl>2016-01-27 16:15:24 +0100
commit4be80f8aa3c585882b4499d6d69dcbf4a97eff29 (patch)
tree2bb212f39637ba5124897917d43650cda233b67c /app/views/projects/blame
parenta93f7099fa2ed98746ebfb5e55322d0afb5068f8 (diff)
downloadgitlab-ce-4be80f8aa3c585882b4499d6d69dcbf4a97eff29.tar.gz
Fix highlighting in blame view.
Diffstat (limited to 'app/views/projects/blame')
-rw-r--r--app/views/projects/blame/show.html.haml6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/views/projects/blame/show.html.haml b/app/views/projects/blame/show.html.haml
index 53dcac78a9f..aecdec32d00 100644
--- a/app/views/projects/blame/show.html.haml
+++ b/app/views/projects/blame/show.html.haml
@@ -15,7 +15,6 @@
.file-content.blame.code.js-syntax-highlight
%table
- current_line = 1
- - blame_highlighter = highlighter(@blob.name, @blob.data, nowrap: true)
- @blame.each do |blame_group|
%tr
%td.blame-commit
@@ -38,8 +37,7 @@
\
- current_line += line_count
%td.lines
- %pre{class: 'code highlight'}
+ %pre.code.highlight
%code
- blame_group[:lines].each do |line|
- :preserve
- #{blame_highlighter.highlight(line)}
+ #{line}