%#
# @file
# The inner HTML of the account box that comes up in the bottom left
#%>
<% if current_user %>
<% account = current_user %>
<%= image_tag account.image.url(:sixtyfour), :size => "48x48", :class => "sidebarAccountImage" %>
<% if current_user.present? %>
-
<% if user_has_unread_notifications? %>
<% end %>
<%= link_to "Notifications", notifications_path %>
<% end %>
-
<%= link_to "Account", edit_user_url(account) %>
<% if account.admin %>
-
<%= link_to "Admin", metacodes_path %>
<% end %>
-
<%= link_to "Apps", oauth_authorized_applications_path %>
-
Share Invite
-
<%= link_to "Sign Out", "/logout", id: "Logout" %>
<% 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) %>
<% end -%>
<% end %>
<% end %>
<% # Rails.logger.info(stored_location_for(:user)) %>