- content_for :title, 'Welcome Page'
.site-wrapper
  .site-wrapper-inner
    .cover-container
      .masthead.clearfix
        .inner
          %h3.masthead-brand= t(".generic")
          %ul.nav.masthead-nav
            %li.active
              %a{:href => "#"}= t(".home")
            %li
              %a{:href => "#"}= t(".about_us")
            %li
              %a{:href => "#"}= t(".contact")
      .inner.cover
        %h1.cover-heading= t(".demo_application")
        %p.lead= t(".demo_app_description")
        %p.lead
          %a.btn.btn-lg.btn-primary{:href => new_user_session_path}= t(".sign_in")
      .mastfoot
        .inner
          %p
            = t(".all_rights_reserved")
            = succeed "," do
              %a.test-auto-prefixer{:href => "#"}= t(".generic")

:javascript
  RailsFoo.welcome.setup()

- content_for :title, 'Welcome Page'
.site-wrapper
  .site-wrapper-inner
    .cover-container
      .masthead.clearfix
        .inner
          %h3.masthead-brand= t(".generic")
          %ul.nav.masthead-nav
            - if user_signed_in?
              %li
                = "You are logged in as #{current_user.email}"
              %li.active
                = link_to t('navigation.logout'), destroy_user_session_path, :method=>'delete'
            - else
              %li.active
                %a{:href => "#"}= t(".home")
              %li
                %a{:href => "#"}= t(".about_us")
              %li
                %a{:href => "#"}= t(".contact")
      .inner.cover
        %h1.cover-heading= t(".demo_application")
        %p.lead= t(".demo_app_description")
        %p.lead
          %a.btn.btn-lg.btn-primary{:href => new_user_session_path}= t(".sign_in")
      .mastfoot
        .inner
          %p
            = t(".all_rights_reserved")
            = succeed "," do
              %a.test-auto-prefixer{:href => "#"}= t(".generic")

:javascript
  RailsFoo.welcome.setup()

Add sign_out button to main page after sign in
Add sign_out button to main page after sign in
