summaryrefslogtreecommitdiff
path: root/app/views/projects/blame
diff options
context:
space:
mode:
authorStefan Tatschner <stefan@sevenbyte.org>2014-12-03 15:27:31 +0100
committerStefan Tatschner <stefan@sevenbyte.org>2015-01-15 13:41:11 +0100
commitbf079c24afb8ad2991a4eaf60a71a7bc45dd775d (patch)
treeed6317f84473ea68ef9444b0a2736f305f0a2b75 /app/views/projects/blame
parent377ae460056bb2a4e5824c4f7a3bbcb481e3e38b (diff)
downloadgitlab-ce-bf079c24afb8ad2991a4eaf60a71a7bc45dd775d.tar.gz
Replace highlight.js with rouge-fork rugments
I decided to create a fork of rouge as rouge lacks a HTML formatter with the required options such as wrapping a line with <span> tags. Furthermore I was not really convinced about the clarity of rouge's source code. Rugments 1.0.0beta3 for now only includes some basic linting and a new HTML formatter. Everything else should behave the same.
Diffstat (limited to 'app/views/projects/blame')
-rw-r--r--app/views/projects/blame/show.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/blame/show.html.haml b/app/views/projects/blame/show.html.haml
index bdf02c6285d..c507ecf2e49 100644
--- a/app/views/projects/blame/show.html.haml
+++ b/app/views/projects/blame/show.html.haml
@@ -26,9 +26,9 @@
= i
\
%td.lines
- %pre
- %code{ class: highlightjs_class(@blob.name) }
+ %pre{class: 'code highlight white'}
+ %code
:erb
<% lines.each do |line| %>
- <%= line %>
+ <%= highlight(@blob.name, line, true).html_safe %>
<% end %>