%#
# @file
# The inner HTML of the account box that comes up in the bottom left
#%>
<% if authenticated? %>
<% account = current_user %>
<%= image_tag user.image.url(:thumb), :size => "48x48", :class => "sidebarAccountImage" %>
-
<%= link_to "Account", edit_user_url(account), :data => { :bypass => 'true'} %>
<% if account.admin %>
-
<%= link_to "Admin", metacodes_path, :data => { :bypass => 'true'} %>
<% end %>
-
Share Invite
-
<%= link_to "Sign Out", "/logout", id: "Logout", :data => { :bypass => 'true'} %>
<% else %>
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => { class: "loginAnywhere" }) do |f| %>
<%= f.email_field :email, :placeholder => "Email" %>
<%= f.password_field :password, :placeholder => "Password" %>
<%= f.submit "SIGN IN" %>
<% if devise_mapping.rememberable? -%>
<%= f.label :remember_me, "Stay signed in" %>
<%= f.check_box :remember_me %>
<% end -%>
<%- if devise_mapping.recoverable? && controller_name != 'passwords' %>
<%= link_to "Forgot password?", new_password_path(resource_name),
:data => { :bypass => 'true'} %>
<% end -%>
<% end %>
<% end %>
<% # Rails.logger.info(stored_location_for(:user)) %>