Fixed some tests and snippet colorize
This commit is contained in:
parent
470aa7675e
commit
9304d049de
13 changed files with 64 additions and 68 deletions
|
@ -15,8 +15,12 @@
|
|||
%span.options
|
||||
= link_to "raw", raw_project_snippet_path(@project, @snippet), class: "btn very_small", target: "_blank"
|
||||
.file_content.code
|
||||
%div{class: current_user.dark_scheme ? "black" : ""}
|
||||
= raw @snippet.colorize(options: { linenos: 'True'})
|
||||
- unless @snippet.content.empty?
|
||||
%div{class: current_user.dark_scheme ? "black" : "white"}
|
||||
= preserve do
|
||||
= raw Pygments.highlight(@snippet.content, formatter: :gitlab)
|
||||
- else
|
||||
%h4.nothing_here_message Empty file
|
||||
|
||||
|
||||
%div
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue