app/views/citygate/shared/_navigation.html.erb in citygate-0.0.7 vs app/views/citygate/shared/_navigation.html.erb in citygate-0.0.8

- old
+ new

@@ -1,19 +1,21 @@ <nav> <ul> <% if user_signed_in? %> - <% if can?(:manage, Citygate::User) and !params[:controller]["admin"] %> + <% if can?(:manage, Citygate::User) %> <li><i class='icon-cog'></i><%= link_to t('navigation.links.admin'), citygate.admin_users_path %></li> <% end %> <li><i class='icon-user'></i><%= link_to t('navigation.links.profile'), citygate.profile_path %></li> <li><i class='icon-unlock'></i><%= link_to t('navigation.links.log_out'), citygate.destroy_user_session_path, method: 'delete' %></li> <% else %> <li><%= link_to t('navigation.links.log_in'), citygate.new_user_session_path %></li> <li><%= link_to t('navigation.links.sign_up'), citygate.new_user_registration_path %></li> <% Citygate::User.omniauth_providers.each do |provider| %> - <li><%= link_to t('navigation.links.omniauth', provider: provider.to_s.titleize), "/users/auth/#{provider.to_s}", :id => "#{provider.to_s}" %></li> + <% if provider != "facebook" %> + <li><%= link_to t('navigation.links.omniauth', provider: provider.to_s.titleize), "/users/auth/#{provider.to_s}", :id => "#{provider.to_s}" %></li> + <% end %> <% end -%> <% end %> </ul> </nav>