Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-28 11:58:59 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-28 11:58:59 +0400
commitb6454591ccaeced4c57562167be903308102a25d (patch)
tree3b3cfc57580f2a51cb7969b3a381b654df612d1a /app/views/projects/snippets
parent55a662e0c94d19cc09bcec7a2701252cfa1e1450 (diff)
parent891ea6f6e66c753d9a2f7a4e261f4d37e118c253 (diff)
Merge branch 'highlight-js' into 'master'
Highlight.Js Replace pygments code highlight with client-side library - highlight.js http://highlightjs.org/
Diffstat (limited to 'app/views/projects/snippets')
-rw-r--r--app/views/projects/snippets/_blob.html.haml3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/projects/snippets/_blob.html.haml b/app/views/projects/snippets/_blob.html.haml
index f14a2bd4ec0..088eb5c08ca 100644
--- a/app/views/projects/snippets/_blob.html.haml
+++ b/app/views/projects/snippets/_blob.html.haml
@@ -9,7 +9,6 @@
= link_to "raw", raw_project_snippet_path(@project, @snippet), class: "btn btn-tiny", target: "_blank"
.file-content.code
- unless @snippet.content.empty?
- %div{class: user_color_scheme_class}
- = raw @snippet.colorize(formatter: :gitlab)
+ = render 'shared/file_hljs', blob: @snippet
- else
%p.nothing_here_message Empty file