Sha256: 658918a28197a1b52bbd5a750273daef26ab2845a4a43f32bc7a85090b681b58

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 KB

Contents

!!! Strict
%html
  %head
    %title= "404 – Not Found"
    %style{:type=>'text/css'}
      :plain
        body { color: #222; font:14px "Helvetica", "Arial"; line-height: 20px; }
        #wrapper { margin:0px auto; width:300px; }
        h1 { margin: 24px -30px 10px -3px; font: bold 48px Georgia; line-height:48px;}
        img { margin: 60px 0px 0px -22px; }
        tt { color: #4D9EEF; color:#999; font-family: Inconsolata, Monaco, monospace }
    =refresh
  %body
    #wrapper
      %img{:src=>'/__frank__/frank-404.png'}
      %h1= "Not Found—"
      - unless Frank.serving_static?
        %p
          - if request['REQUEST_PATH']
            - path = request['REQUEST_PATH'][1..-1]
            = "Try creating"

            - if path.match(/\.css$/)
              = "<tt>#{path.match(/([\w\/]+)\./)[1]}.sass</tt>"
            - else
              = "<tt>#{path.gsub(/\/$/, '')}.haml</tt>"
            = "in the <tt>#{dynamic_folder}</tt> folder, or"

            - if path.match(/\.\w+/)
              = "<tt>#{path}</tt>"
            - else
              = "<tt>#{path.gsub(/\/$/, '')}.html</tt>"
            = "in the <tt>#{static_folder}</tt> folder."

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
frank-1.0.3 lib/frank/templates/404.haml