doctype html
html
  head
    title = content_for(:page_title) || t("site.title")
    = google_webfonts_init({ google: 'Dosis' })
    = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
    = javascript_include_tag 'application', 'data-turbolinks-track' => true
    = csrf_meta_tags
  body
    nav
      h1
        = link_to content_for(:chapter_name) || t("site.title"), root_path
      p.links.pull-right
        - if user_signed_in?
          ' Signed in as
          => link_to current_user.email, profile_path
          ' |
          - if current_user.admin?
            => link_to "Admin dashboard", admin_path
            ' |
          = link_to "Sign out", destroy_user_session_path, method: :delete
        - else
          = link_to "Sign in", new_user_session_path

    - if flash.key?(:notice) || flash.key?(:alert)
      .container
        .col-md-8.col-md-offset-2
          - if flash.key? :notice
            p.alert.alert-info = flash[:notice]
          - if flash.key? :alert
            p.alert.alert-danger = flash[:alert]

    = yield

doctype html
html
  head
    title = content_for(:page_title) || t("site.title")
    = google_webfonts_init({ google: 'Dosis' })
    = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
    = javascript_include_tag 'application', 'data-turbolinks-track' => true
    = csrf_meta_tags
  body
    nav
      h1
        = link_to content_for(:chapter_name) || t("site.title"), root_path
      p.links.pull-right
        - if user_signed_in?
          ' Signed in as
          => link_to current_user.email, profile_path
          ' |
          - if current_user.admin?
            => link_to "Admin dashboard", admin_path
            ' |
          = link_to "Sign out", destroy_user_session_path, method: :delete
        - else
          => link_to "Sign up", new_user_registration_path
          ' |
          => link_to "Sign in", new_user_session_path

    - if flash.key?(:notice) || flash.key?(:alert)
      .container
        .col-md-8.col-md-offset-2
          - if flash.key? :notice
            p.alert.alert-info = flash[:notice]
          - if flash.key? :alert
            p.alert.alert-danger = flash[:alert]

    = yield

Include a 'sign up' link in the navbar for logged-out users.
Include a 'sign up' link in the navbar for logged-out users.

creature/localwelcome,creature/localwelcome,creature/localwelcome