Commit 4d24c3bb authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

fixed snippet show

parent a10ad718
...@@ -6,12 +6,14 @@ ...@@ -6,12 +6,14 @@
- if can?(current_user, :admin_snippet, @project) || @snippet.author == current_user - if can?(current_user, :admin_snippet, @project) || @snippet.author == current_user
= link_to "Edit", edit_project_snippet_path(@project, @snippet), :class => "btn small right" = link_to "Edit", edit_project_snippet_path(@project, @snippet), :class => "btn small right"
%hr %br
#tree-holder
.view_file #tree-content-holder
.view_file
.view_file_header .view_file_header
%strong= @snippet.file_name %strong= @snippet.file_name
.data.no-padding .view_file_content
%div{:class => current_user.dark_scheme ? "black" : ""}
:erb :erb
<%= raw @snippet.colorize %> <%= raw @snippet.colorize %>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment