<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> <%= csrf_meta_tags %> <%= content_tag :body, loco_body_data do %> <%= render 'layouts/flash', name: '', msg: '' %> <% flash.each do |name, msg| %> <%= render 'layouts/flash', name: name, msg: msg %> <% end %>
<% if current_admin || current_user %>

<% if current_admin %> <%= link_to "Sign out", admin_session_url(id: 'current'), method: :delete, data: {'admin-id' => current_admin.id} %> <% end %> <% if current_user %> Hello <%= current_user.email %>! <%= link_to "sign out", user_session_url(id: 'current'), method: :delete, data: {'user-id' => current_user.id}, id: 'sign_out_user' %> <% end %>

<% end %> <%= yield %>
<% end %>