Sha256: 673f70230f4625411961975eae119316fb3163ea2adb25981a3411e02c1aadd1

Contents?: true

Size: 728 Bytes

Versions: 3

Compression:

Stored size: 728 Bytes

Contents

%h1 Listing of #{url_root}#{url_path}
.table-wrapper
  %table
    %thead
      %tr
        %th Name
        %th.new-tab
        %th.type Type
        %th.size Size
        %th.modified Modified
    %tbody
      - (directories + files).each do |file|
        %tr
          %td
            %span.icon= file.icon
            %a.default{href: file.href, class: file.listing_classes, data: { type: file.media_type }}= file.name
          %td
            %a.new-tab{href: file.href, class: file.listing_classes, target: "_blank"} (New tab)
          %td= file.type
          %td= file.size.nil? ? "-" : number_to_human_size(file.size)
          %td= file.mtime.nil? ? "-" : file.mtime.strftime("%e %b %Y %l:%M %p")

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
servel-0.11.0 lib/servel/templates/_listing.haml
servel-0.10.0 lib/servel/templates/_listing.haml
servel-0.9.0 lib/servel/templates/_listing.haml