doctype html
html
head
title = content_for?(:title) ? yield(:title) : "<%= app_name %>"
meta name="viewport" content="width=device-width, initial-scale=1.0"
= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true
= javascript_include_tag "application", "data-turbolinks-track" => true
= csrf_meta_tags
body
.page
nav.page-nav.navbar.navbar-default role="navigation"
.container
= link_to "<%= app_name %>", '/', class: 'navbar-brand'
ul.nav.navbar-nav
ul.nav.navbar-nav.pull-right
- if user_signed_in?
li = link_to "Logout", logout_path, method: :delete
- else
li = link_to "Sign Up", signup_path
li = link_to "Login", login_path
.container
= render 'flashes'
= yield
= render 'javascript'