Sha256: 2cd3399a7a44b7ef1ad9a0d7b6fe8d67623469042893de59ba23f3d88f80048e

Contents?: true

Size: 623 Bytes

Versions: 2

Compression:

Stored size: 623 Bytes

Contents

%h1 Listing of #{url_path}
%table
  %thead
    %tr
      %th Name
      %th.new-tab
      %th.type Type
      %th.size Size
      %th.modified Modified
  %tbody
    - (directories + files).each do |file|
      - file = file.decorate
      %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.directory? ? "-" : number_to_human_size(file.size)
        %td= file.mtime.strftime("%e %b %Y %l:%M %p")

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
servel-0.4.0 lib/servel/templates/_listing.haml
servel-0.3.0 lib/servel/templates/_listing.haml