<div id="profile" class="userinfo">

<!-- shopping cart -->
<% if Rails.application.config.jam_tracks_available && @in_client_page %>
  <a id="header-shopping-cart" href="/client#/shoppingCart" class="header-shopping-cart hidden">
    <img src="/assets/content/shopping-cart.png"/>
  </a>
<% end %>

<span style="white-space: nowrap">

<% if signed_in? %>
<!-- profile area -->


  <div class="arrow-down"></div>

    <!-- user name -->
  <div id="user" class="user"></div>


<!-- end profile area -->
<% else %>
      <div class="user"><a class="signin" href="/signup" rel="external">Sign Up</a>&nbsp;or&nbsp;<a class="signin real-signin" href="/signin">Sign In</a></div>
<% end %>

<!-- avatar -->
<a href="#" class="avatar_large">
  <img id="header-avatar" src="/assets/shared/avatar_generic.png" />
</a>

<ul class="shortcuts" style="z-index:1000;">
  <% if signed_in? %>
    <!-- <li><a layout-link="account">Profile</a></li> -->
    <li class="account-home"><%= link_to "Account Home", '/client#/account' %></li>
    <li class="identity"><%= link_to "Identity", '/client#/account/identity' %></li>
    <li class="profile"><%= link_to "Profile", '/client#/account/profile' %></li>
    <!--<li class="subscriptions"><%= link_to "Subscriptions", '/client#/account/subscriptions' %></li> -->
    <!-- <li class="payments"><%= link_to "Payments", '/client#/account/payments' %></li> -->
    <% if current_user && current_user.musician? %>
      <% class_val = current_user.affiliate_partner.present? ? 'audio' : 'audio account-menu-group' %>
      <li class="audio"><%= link_to "Audio Gear", '/client#/account/audio' %></li>
      <% if (Rails.application.config.video_available && Rails.application.config.video_available!="none") || (current_user && current_user.admin) %>
        <li class="<%= class_val%>"><%= link_to "Video Gear", '/client#/account/video' %></li>
      <% end %>
    <% end %>
    <% if current_user && current_user.affiliate_partner.present? %>
      <li class="affiliate account-menu-group"><%= link_to "Affiliate Report", '/client#/account/affiliate' %></li>
    <% end %>
    <% if @nativeClient && Rails.application.config.jamblaster_menu %>
      <!--<li class="jamblaster-config"><%= link_to "JamBlaster Settings", '/client#/jamblaster' %></li>-->
    <% end %>
    <% if current_user %>
      <!--<li class="band-setup"><%= link_to "JamClass", '/client#/jamclass' %></li>-->
    <% end %>
    <li class="invite-friends"><span class='menuheader'><span class="arrow-right"></span><%= link_to "Invite Friends", '#' %></span>
      <ul class="shortcuts-submenu">
        <li class="google-invite"><%= link_to "Google", '#' %></li>
        <li class="email-invite"><%= link_to "Email", '#' %></li>
        <li class="facebook-invite"><%= link_to "Facebook", '#' %></li>
      </ul>
    </li>
    <li class="download-app"><%= link_to "Download App", downloads_path, :rel => "external" %></li>
    <% if false #@nativeClient %>
      <li class="test-network"><%= link_to "Test Network", '#' %></li>
    <% end %>
    <li class="get-help"><%= link_to "Get Help", help_desk_path, :rel => "external" %></li>
    <li class="sign-out"><%= link_to "Sign Out", signout_path, method: "delete" %></li>
  <% else %>
    <li class="download-app"><%= link_to "Download App", downloads_path, :rel => "external" %></li>
    <li class="get-help"><%= link_to "Get Help", help_desk_path, :rel => "external" %></li>
  <% end %>


</ul>
</span>
</div>
