Sha256: 255093d6ef43c6e893edd538073706c5f21a16e4b4ca557dabe060f1894f71ce

Contents?: true

Size: 998 Bytes

Versions: 4

Compression:

Stored size: 998 Bytes

Contents

- @title = root

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

%table.condensed-table.zebra-striped.listing
  %thead
    %tr
      %th File
      %th Author
      %th Last Modified

  %tbody
    - contents.items.each_with_index do |f, i|
      %tr
        %td
          %a{ :href => "/#{idx}#{request.path_info}/#{f.name}" }
            = f.name
        %td.author
        %td.modified

.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
      %input{:type => 'file', :value => "Select a file", :name => "file", :class => "uploader" }
      %input{:type => 'submit', :value => "Upload file", :class => "btn secondary" }

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gitdocs-0.4.3 lib/gitdocs/views/dir.haml
gitdocs-0.4.2 lib/gitdocs/views/dir.haml
gitdocs-0.4.1 lib/gitdocs/views/dir.haml
gitdocs-0.4.0 lib/gitdocs/views/dir.haml