Add user_color_scheme_class helper
This commit is contained in:
parent
c4f3c54ecb
commit
184a9ecaf6
3 changed files with 8 additions and 6 deletions
|
@ -8,8 +8,7 @@
|
|||
- else
|
||||
.file_content.code
|
||||
- unless blob.empty?
|
||||
%div{class: current_user.dark_scheme ? "black" : "white"}
|
||||
= preserve do
|
||||
= raw blob.colorize(formatter: :gitlab)
|
||||
%div{class: user_color_scheme_class}
|
||||
= raw blob.colorize(formatter: :gitlab)
|
||||
- else
|
||||
%p.nothing_here_message Empty file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue