Sha256: 98879686023bd808540f5c15ac457f3e2fd30730d64a66a0682e51f10a74158c

Contents?: true

Size: 661 Bytes

Versions: 1

Compression:

Stored size: 661 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, **file.listing_attrs}= file.name
          %td
            %a.new-tab{href: file.href, target: "_blank", **file.listing_attrs} (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

1 entries across 1 versions & 1 rubygems

Version Path
servel-0.6.0 lib/servel/templates/_listing.haml