<% if user_signed_in? %>
- <%= link_to('Edit account', edit_user_registration_path) %>
- <%= link_to('Log out', destroy_user_session_path, :method=>'delete') %>
<% else %>
- <%= link_to('Log in', new_user_session_path) %>
- <%= link_to('Sign up', new_user_registration_path) %>
<% Citygate::User.omniauth_providers.each do |provider| %>
- <%= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(Citygate::User.new, provider) %>
<% end -%>
<% end %>
<% if can?(:read, Citygate::User) && !params[:controller]["admin"] %>
- <%= link_to("Admin", admin_users_path) %>
<% end %>