Sha256: 28accf6361348f856fa2f53781616966199b1d507c699d623978af68978fa528

Contents?: true

Size: 1.1 KB

Versions: 3

Compression:

Stored size: 1.1 KB

Contents

- @title = root

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

%table#fileListing.condensed-table.zebra-striped
  %thead
    %tr
      %th File
      %th Author
      %th Last Modified
      %th Size

  %tbody
    - contents.items.each_with_index do |f, i|
      %tr
        %td
          %img{ :src => "/img/#{f.file? ? 'file' : 'folder'}.png", :width => 16, :height => 16 }
          %a{ :href => "/#{idx}#{request.path_info}/#{f.name}" }
            = f.name
        %td.author
        %td.modified
        %td.size

.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

3 entries across 3 versions & 1 rubygems

Version Path
gitdocs-0.4.7 lib/gitdocs/views/dir.haml
gitdocs-0.4.6 lib/gitdocs/views/dir.haml
gitdocs-0.4.5 lib/gitdocs/views/dir.haml