file name overflow fixed

This commit is contained in:
gitlabhq 2011-11-22 07:50:47 -05:00
parent a59b709021
commit 3f0d807955
6 changed files with 17 additions and 3 deletions

View file

@ -8,8 +8,12 @@
%br/
- if file.text?
.view_file_content
:erb
<%= raw file.colorize %>
- unless file.empty?
:erb
<%= raw file.colorize %>
- else
%h3
%center Empty file
- elsif file.image?
.view_file_content_image
%img{ :src => "data:#{file.mime_type};base64,#{Base64.encode64(file.data)}"}