%#
# @file
# The inner HTML of the account box that comes up in the bottom left
#%>
<% if authenticated? %>
<% account = current_user %>
- <%= 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 "Logout", "/sign_out", id: "Logout",
:data => { :bypass => 'true'} %>
<% else %>
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => { class: "loginAnywhere" }) do |f| %>
<%= f.label :email %>
<%= f.email_field :email, :autofocus => true %>
<%= f.label :password %>
<%= f.password_field :password %>
<% if devise_mapping.rememberable? -%>
<%= f.check_box :remember_me %> <%= f.label :remember_me %>
<% end -%>
<%= f.submit "Sign in" %>
<% end %>
<%- if devise_mapping.recoverable? && controller_name != 'passwords' %>
<%= link_to "Forgot your password?", new_password_path(resource_name),
:data => { :bypass => 'true'} %>
<% end -%>
Request Invite
<% end %>