Sha256: cdde94a3c176dc0ebaace8361c0104daad76c3d3821e46efeebb3fb325fb5f37

Contents?: true

Size: 945 Bytes

Versions: 5

Compression:

Stored size: 945 Bytes

Contents

%h1 Listing of #{url_root}#{url_path}
.table-wrapper
  %table
    %thead
      %tr
        %th{sort_attrs(sort, "name")}
          %a{href: "#"} Name
        %th.new-tab
        %th.type{sort_attrs(sort, "type")}
          %a{href: "#"} Type
        %th.size{sort_attrs(sort, "size")}
          %a{href: "#"} Size
        %th.modified{sort_attrs(sort, "mtime")}
          %a{href: "#"} Modified
    %tbody
      - entries.each do |file|
        %tr
          %td
            %span.icon= file.icon
            %a.default{href: Rack::Utils.escape_path(file.href), class: file.listing_classes, data: { type: file.media_type }}= file.name
          %td
            %a.new-tab{href: Rack::Utils.escape_path(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

5 entries across 5 versions & 1 rubygems

Version Path
servel-0.19.0 lib/servel/templates/_listing.haml
servel-0.18.0 lib/servel/templates/_listing.haml
servel-0.17.0 lib/servel/templates/_listing.haml
servel-0.16.0 lib/servel/templates/_listing.haml
servel-0.15.0 lib/servel/templates/_listing.haml