summaryrefslogtreecommitdiff
path: root/app/views/snippets
diff options
context:
space:
mode:
authorgitlabhq <m@gitlabhq.com>2011-10-20 22:00:00 +0300
committergitlabhq <m@gitlabhq.com>2011-10-20 22:00:00 +0300
commitc463eeb0908e5c00008073c07e71e06434393342 (patch)
treede9e958048e0d7e148d8e85bd5512339aca3ec1f /app/views/snippets
parent48924dfeeafbe965ec06797b10010ebd8a5dcfcd (diff)
downloadgitlab-ce-c463eeb0908e5c00008073c07e71e06434393342.tar.gz
refactoring
Diffstat (limited to 'app/views/snippets')
-rw-r--r--app/views/snippets/show.html.haml3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/snippets/show.html.haml b/app/views/snippets/show.html.haml
index bb444efec79..899950b7c36 100644
--- a/app/views/snippets/show.html.haml
+++ b/app/views/snippets/show.html.haml
@@ -7,9 +7,8 @@
= @snippet.file_name
%br/
.view_file_content
- - ft = handle_file_type(@snippet.file_name)
:erb
- <%= raw Albino.colorize(@snippet.content, ft, :html, 'utf-8', "linenos=True") %>
+ <%= raw @snippet.colorize %>
- if can?(current_user, :admin_snippet, @project) || @snippet.author == current_user
= link_to 'Edit', edit_project_snippet_path(@project, @snippet), :class => "lbutton positive"