diff options
author | gitlabhq <m@gitlabhq.com> | 2011-11-16 08:38:53 +0300 |
---|---|---|
committer | gitlabhq <m@gitlabhq.com> | 2011-11-16 08:38:53 +0300 |
commit | af08ed6b66530b8efc68bf45e1f11599e333b826 (patch) | |
tree | 1db2fb4d69f60a7da99ec69e6bdcd1a9eb1fd183 /app/views/projects/_tree_file.html.haml | |
parent | f294b8d4c3209689dde00326ca6270afa0b4843e (diff) | |
download | gitlab-ce-af08ed6b66530b8efc68bf45e1f11599e333b826.tar.gz |
refactoring
Diffstat (limited to 'app/views/projects/_tree_file.html.haml')
-rw-r--r-- | app/views/projects/_tree_file.html.haml | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/app/views/projects/_tree_file.html.haml b/app/views/projects/_tree_file.html.haml deleted file mode 100644 index b5b18213887..00000000000 --- a/app/views/projects/_tree_file.html.haml +++ /dev/null @@ -1,19 +0,0 @@ -:css -.view_file - .view_file_header - %strong - = name - = link_to "raw", blob_project_path(@project, :commit_id => @commit.id, :path => params[:path] ), :class => "right", :target => "_blank" - = link_to "history", project_commits_path(@project, :path => params[:path], :branch => params[:branch], :tag => params[:tag] ), :class => "right", :style => "margin-right:10px;" - %br/ - - if file.text? - .view_file_content - :erb - <%= raw file.colorize %> - - elsif file.image? - .view_file_content_image - %img{ :src => "data:#{file.mime_type};base64,#{Base64.encode64(file.data)}"} - - else - %p - %center No preview for this file type - |