CSS improvements & refactoring
This commit is contained in:
parent
b58326afc6
commit
d3862c0e57
10 changed files with 156 additions and 183 deletions
|
@ -7,16 +7,14 @@
|
|||
= link_to "Edit", edit_project_snippet_path(@project, @snippet), :class => "btn small right"
|
||||
|
||||
%br
|
||||
#tree-holder
|
||||
#tree-content-holder
|
||||
.view_file
|
||||
.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'})
|
||||
.file_holder
|
||||
.file_title
|
||||
%i.icon-file
|
||||
%strong= @snippet.file_name
|
||||
%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'})
|
||||
|
||||
= render "notes/notes", :tid => @snippet.id, :tt => "snippet"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue