Sha256: 91ed2bb0cdafb101b53fcec17ce9d4c3633fc7ea8b3239a59a854e9616d86663

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

!!! Strict
%html{html_attrs}
  %head
    %meta{'http-equiv' => 'Content-Type', :content => 'text/html;charset=UTF-8'}
    %title
      == <%= app_name %> | #{yield(:title)}
    = stylesheet_link_tag 'compiled/screen.css', :media => 'screen, projection'
    = stylesheet_link_tag 'compiled/print.css', :media => 'print'
    /[if lt IE 8]
      = stylesheet_link_tag 'compiled/ie.css', :media => 'screen, projection'
    = javascript_include_tag :defaults
  %body{:id => yield(:page)}
    #wrap
      #header
        %h1 <%= app_name %>
      #navbar
        %ul
          - if logged_in?
            %li 
              = t("label.welcome")
              = link_to current_user.full_name, user_path(@current_user)
            %li
              = link_to "Home", root_path
            %li
              = link_to "Logout", logout_path
          - else
            %li
              = link_to "Home", root_path
            %li
              = link_to "Login", login_path
      #flash_box{:onclick => "new Effect.Fade(this, {duration: 0.1, from: 0.7});", :style => "display: none;"}
        - flash_message
      #content.container
        %h2= yield(:title)
        = yield
      .push

    #footer
      %p.right
        Right Footer
      %p.left
        Left Footer
        

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mondo-generators-0.6.2 rails_generators/mondo_layout/templates/layout.html.haml