fixed snippet show
This commit is contained in:
parent
a10ad7183e
commit
4d24c3bb21
1 changed files with 10 additions and 8 deletions
|
@ -6,13 +6,15 @@
|
||||||
- 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_header
|
.view_file
|
||||||
%strong= @snippet.file_name
|
.view_file_header
|
||||||
.data.no-padding
|
%strong= @snippet.file_name
|
||||||
:erb
|
.view_file_content
|
||||||
<%= raw @snippet.colorize %>
|
%div{:class => current_user.dark_scheme ? "black" : ""}
|
||||||
|
:erb
|
||||||
|
<%= raw @snippet.colorize %>
|
||||||
|
|
||||||
= render "notes/notes", :tid => @snippet.id, :tt => "snippet"
|
= render "notes/notes", :tid => @snippet.id, :tt => "snippet"
|
||||||
|
|
Loading…
Add table
Reference in a new issue