Styled snippets. Raw button for snippet

This commit is contained in:
randx 2012-06-12 21:41:46 +03:00
parent b96af79bb8
commit 093159a868
5 changed files with 39 additions and 7 deletions

View file

@ -13,6 +13,8 @@
.view_file_header
%i.icon-file
%strong= @snippet.file_name
%span.options
= link_to "raw", raw_project_snippet_path(@project, @snippet), :class => "btn very_small", :target => "_blank"
.view_file_content
%div{:class => current_user.dark_scheme ? "black" : ""}
= raw @snippet.colorize(options: { linenos: 'True'})