Commit 4d24c3bb215b4d777d938ffdb7e2a37359bf0460
1 parent
a10ad718
Exists in
master
and in
4 other branches
fixed snippet show
Showing
1 changed file
with
10 additions
and
8 deletions
Show diff stats
app/views/snippets/show.html.haml
... | ... | @@ -6,13 +6,15 @@ |
6 | 6 | - if can?(current_user, :admin_snippet, @project) || @snippet.author == current_user |
7 | 7 | = link_to "Edit", edit_project_snippet_path(@project, @snippet), :class => "btn small right" |
8 | 8 | |
9 | -%hr | |
10 | - | |
11 | -.view_file | |
12 | - .view_file_header | |
13 | - %strong= @snippet.file_name | |
14 | - .data.no-padding | |
15 | - :erb | |
16 | - <%= raw @snippet.colorize %> | |
9 | +%br | |
10 | +#tree-holder | |
11 | + #tree-content-holder | |
12 | + .view_file | |
13 | + .view_file_header | |
14 | + %strong= @snippet.file_name | |
15 | + .view_file_content | |
16 | + %div{:class => current_user.dark_scheme ? "black" : ""} | |
17 | + :erb | |
18 | + <%= raw @snippet.colorize %> | |
17 | 19 | |
18 | 20 | = render "notes/notes", :tid => @snippet.id, :tt => "snippet" | ... | ... |