lib/gitdocs/views/dir.haml in gitdocs-0.4.8 vs lib/gitdocs/views/dir.haml in gitdocs-0.4.9
- old
+ new
@@ -25,14 +25,14 @@
- if contents.empty?
%p No files were found in this directory.
.row
.span6
- %form.add
- %p Add a file in this directory
- %input{:type => 'text', :name => "path", :class => "edit" }
- %input{:type => 'submit', :value => "New file", :class => "btn secondary" }
- .span6
%form.upload{ :method => "post", :enctype => "multipart/form-data", :action => "/#{idx}#{request.path_info}?mode=upload" }
- %p Upload a file to this directory
+ %p Upload file to this directory
%input{:type => 'file', :value => "Select a file", :name => "file", :class => "uploader" }
%input{:type => 'submit', :value => "Upload file", :class => "btn secondary" }
+ .span6
+ %form.add
+ %p Add new file in this directory
+ %input{:type => 'text', :name => "path", :class => "edit", :placeholder => "somefile.md" }
+ %input{:type => 'submit', :value => "New file", :class => "btn secondary" }