<% if @current_admin %> <%= stylesheet_link_tag 'rails_marketplace/application', media: 'all', 'data-turbolinks-track' => true %> <%= javascript_include_tag 'rails_marketplace/application', 'data-turbolinks-track' => true %> <% else %> <%= stylesheet_link_tag 'rails_marketplace/marketplace', media: 'all', 'data-turbolinks-track' => true %> <%= javascript_include_tag 'rails_marketplace/marketplace', 'data-turbolinks-track' => true %> <% end %> <%= csrf_meta_tags %> <% if @current_admin %>
<% flash.each do |key, value| %>
<%= value %>
<% end %> <%= render "rails_marketplace/partials/admin_sidenav" %> <%= render "rails_marketplace/partials/admin_topnav" %> <%= yield %> <%= render "rails_marketplace/partials/footer" %> <%= javascript_include_tag 'rails_marketplace/footermanifest', 'data-turbolinks-track' => true %> <% else %>
<%= render "rails_marketplace/partials/menu" %> <% flash.each do |key, value| %>
×
    <%= value %>
<% end %> <%= yield %> <% end %>