Sha256: b91f89436a812ee3ba24208a77694e2454e49bcd505a39615a96d392e3f30d7e

Contents?: true

Size: 751 Bytes

Versions: 2

Compression:

Stored size: 751 Bytes

Contents

%h1= root

= partial("header", :locals => { :parent => parent, :file => false, :idx => idx })

%table
  -contents.each_with_index do |f, i|
    %tr
      %td
        %a{ :href => "/#{idx}#{request.path_info}/#{File.basename(f)}" }
          ="#{request.path_info}/#{File.basename(f)}"


%form.add
  %p Add a file in this directory
  %input{:type => 'text', :name => "path", :class => "edit" }
  %input{:type => 'submit', :value => "New file" }

%form.upload{ :method => "post", :enctype => "multipart/form-data", :action => "/#{idx}#{request.path_info}?mode=upload" }
  %p Upload a file to this directory
  %input{:type => 'file', :value => "Select a file", :name => "file", :class => "uploader" }
  %input{:type => 'submit', :value => "Upload file"}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gitdocs-0.3.6 lib/gitdocs/views/dir.haml
gitdocs-0.3.5 lib/gitdocs/views/dir.haml