Template source: _account_navigation.html

{% extends "_account_navigation_root.html" %}
{% load i18n %}{% load secure_url %}{% load staticfiles %}{% load is_auction_enabled %}

{% block usernav %}

{% if user.is_authenticated %}
  <li class="dropdown account-bar">
    <a class="dropdown-toggle" data-toggle="dropdown" href="javascript:;" >
        <i class="ss-dropdown"></i>
        {% if user.get_profile.picture %}
        <img src="{{ user.get_profile.picture.small_url }}" class="circle-icon profile-picture">
        {% else %}
        <img src='{% static "images/icons/iconNoAvatar.png" %}' alt="{{ user.username }}"  class="circle-icon top-nav" />
        {% endif %}
        <span id='logged-in-username' username='{{ user.username }}' class="lato">{{ user.username|truncatechars:10 }}</span>        
    </a>
    <dl class="dropdown-menu" role="menu" aria-labelledby="dLabel">
      <dd class="appendtop-10"><a href="{% url 'account.views.account_settings.manage' %}">{% trans "Account Settings" %}</a></dd>
      <dd><a href="{% url 'view_bids' %}">{% trans "View Bids" %}</a></dd>
      {% is_auction_enabled request.user as auction_enabled %}
      {% if auction_enabled %}
      <dd><a href="{% url 'manage_all_auctions' %}">{% trans "Manage Auctions" %}</a></dd>
      {% endif %}
      <dd class="divider"></dd>
      <dd><a href="{% url 'django.contrib.auth.views.logout' %}">{% trans "Sign Out" %}</a></dd>
    </dl>
  </li>
{% else %}
  <li class="sign-in appendright-20"><a href="javascript:;" class="sign-in uppercase important">Sign In</a></li>
  <li class="join"><button class="btn btn-green join trigger-modal btn-wide" data-class="popup-signup-form" data-title="{% trans 'Signup to Bid' %}" data-href="{% secure_url 'account.views.register.signup' %}">{% trans 'Signup to Bid' %}</button></li>
{% endif %}
{% endblock %}