Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
f3db88b059f4
Commit
4d24c3bb
authored
Mar 10, 2012
by
Dmitriy Zaporozhets
Browse files
fixed snippet show
parent
4fdbd7a49459
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/views/snippets/show.html.haml
View file @
f3db88b0
...
...
@@ -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"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment