Sha256: 96c5d8917fdecc2801151b0f8adbc364d3b9d92985b9b55759259aa034201322

Contents?: true

Size: 970 Bytes

Versions: 1

Compression:

Stored size: 970 Bytes

Contents

<nav>
  <ul>
    <% if user_signed_in? %>
      <% if can?(:manage, Citygate::User) and !params[:controller]["admin"]  %>
        <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>
      <% end -%>
    <% end %>
  </ul>
</nav>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
citygate-0.0.7 app/views/citygate/shared/_navigation.html.erb