summaryrefslogtreecommitdiff
path: root/app/views/snippets
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-11-27 22:49:22 +0100
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-11-27 22:51:05 +0100
commit184a9ecaf6cf25e429fe5653380e356b25a15a90 (patch)
treec9f79fdc7a03bea39c48b3cc29381b74ebf1a0d8 /app/views/snippets
parentc4f3c54ecb3279ce91d987b64055f2eacb1b7fd5 (diff)
downloadgitlab-ce-184a9ecaf6cf25e429fe5653380e356b25a15a90.tar.gz
Add user_color_scheme_class helper
Diffstat (limited to 'app/views/snippets')
-rw-r--r--app/views/snippets/_blob.html.haml5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/views/snippets/_blob.html.haml b/app/views/snippets/_blob.html.haml
index 68a5f2bc5ec..ed518300ac0 100644
--- a/app/views/snippets/_blob.html.haml
+++ b/app/views/snippets/_blob.html.haml
@@ -6,8 +6,7 @@
= link_to "raw", raw_project_snippet_path(@project, @snippet), class: "btn very_small", target: "_blank"
.file_content.code
- unless @snippet.content.empty?
- %div{class: current_user.dark_scheme ? "black" : "white"}
- :preserve
- #{raw @snippet.colorize(formatter: :gitlab)}
+ %div{class: user_color_scheme_class}
+ = raw @snippet.colorize(formatter: :gitlab)
- else
%p.nothing_here_message Empty file