From 4d24c3bb215b4d777d938ffdb7e2a37359bf0460 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sat, 10 Mar 2012 23:57:53 +0200 Subject: [PATCH] fixed snippet show --- app/views/snippets/show.html.haml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/app/views/snippets/show.html.haml b/app/views/snippets/show.html.haml index 6e8ee762..a7ccd44c 100644 --- a/app/views/snippets/show.html.haml +++ b/app/views/snippets/show.html.haml @@ -6,13 +6,15 @@ - if can?(current_user, :admin_snippet, @project) || @snippet.author == current_user = link_to "Edit", edit_project_snippet_path(@project, @snippet), :class => "btn small right" -%hr - -.view_file - .view_file_header - %strong= @snippet.file_name - .data.no-padding - :erb - <%= raw @snippet.colorize %> +%br +#tree-holder + #tree-content-holder + .view_file + .view_file_header + %strong= @snippet.file_name + .view_file_content + %div{:class => current_user.dark_scheme ? "black" : ""} + :erb + <%= raw @snippet.colorize %> = render "notes/notes", :tid => @snippet.id, :tt => "snippet"