Sha256: b2373a11bb636a30ea930092266e3be6ee418c45f4fc79caaf696629bfa80d6b

Contents?: true

Size: 717 Bytes

Versions: 1

Compression:

Stored size: 717 Bytes

Contents

!!!
%html
  %head
    %meta{charset: 'utf-8'}
    %title Directory Listing of #{url_path}
    :css
      #{include('normalize.css')}
      #{include('common.css')}
      #{include('index.css')}
  %body
    #container
      %h1 Directory Listing of #{url_path}
      %ul
        - if show_gallery
          %li
            %a{href: "#{url_path}?gallery"} Gallery
        - unless url_path == "/"
          %li
            %a{href: "../"} ../
        - (directories + files).each do |file|
          - relative_path = file.relative_path_from(fs_path).to_s
          %li
            - if file.directory?
              (Dir) 
            %a{href: relative_path}
              = relative_path

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
servel-0.1.0 lib/servel/templates/index.haml