Add user_color_scheme_class helper
This commit is contained in:
parent
c4f3c54ecb
commit
184a9ecaf6
3 changed files with 8 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue