%%= stylesheet_link_tag 'application', media: 'all' %>
<% if options.foundation? %>
<%%= javascript_include_tag "vendor/modernizr" %>
<% end %>
<%%= csrf_meta_tags %>
<%- if options.devise? -%>
<% if options.foundation? %>
<%- else -%>
<%%- if current_user -%>
- <%%= link_to 'Sign Out', user_session_path(:me), method: :delete %>
<%%- else -%>
- <%%= link_to 'Sign Up', new_registration_path %>
- <%%= link_to 'Sign In', new_user_session_path %>
<%%- end -%>
<%- end -%>
<%- end -%>
<%%- flash.each do |key, value| -%>
<%%= value %>
<%%- end -%>
<%%= yield %>
<%%= javascript_include_tag 'application' %>
<% if options[:react] %>
<%%- if Rails.env.development? || Rails.env.test? -%>
<%%= javascript_tag do %>
window.railsEnv = '<%%= Rails.env %>'
<%%- end -%>
<%%- end -%>
<%%= javascript_pack_tag 'application' %>
<% end %>
<%%= yield :extra_footer %>