file name overflow fixed
This commit is contained in:
parent
a59b709021
commit
3f0d807955
6 changed files with 17 additions and 3 deletions
|
@ -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)}"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue