Template source: _account_navigation_root.html

{% load i18n %}
{% load secure_url %}
{% load staticfiles %}

{% block usernav %}
<span class="user-nav">
{% if user.is_authenticated %}
  <li class="dropdown account-bar visible-tablet visible-desktop">
    <a class="dropdown-toggle" data-toggle="dropdown" href="javascript:;" >
        {% if user.get_role_image %}
          <img src="{{ user.get_role_image }}" class="circle-icon profile-picture" alt="{{ user.username }}"/>
        {% elif 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 class="white" id='logged-in-username' username='{{ user.username }}'>{{ user.username|truncatechars:10 }} <i class="ss-dropdown ss-white"></i></span>
    </a>
    <dl class="dropdown-menu" role="menu" aria-labelledby="dLabel">
      {% block post_ad %}
        <dd><a href="{% url 'post_new_listing' %}">{% trans "Post an Ad" %}</a></dd>
      {% endblock %}
      {% block post_blog %}
        <dd><a href="{% url 'post_new_blog_entry' %}">{% trans "Post Blog Entry" %}</a></dd>
        <dd class="divider"></dd>
      {% endblock %}
      <dd><a href="{% url 'account.views.account_settings.manage' %}">{% trans "Manage Account" %}</a></dd>
      {% block manage_shop %}
        {% if user.submitted_shop_or_none %}
          <dd><a href="{% url 'shop.views.profile.manage' %}">{% trans "Manage Shop" %}</a></dd>
        {% endif %}
      {% endblock %}
      {% block manage_charity %}
        {% if user.submitted_charity_or_none %}
          <dd><a href="{% url 'charity.views.profile.manage' %}">{% trans "Manage Charity" %}</a></dd>
        {% endif %}
      {% endblock %}
      {% block basket %}
      {% endblock %}
      <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"><a href="javascript:;" class="sign-in"><i class="ss-login ss-grey"></i> {% trans 'Sign In' %}</a></li>
  <li class="join"><button class="btn btn-green join trigger-modal btn-small" data-class="popup-signup-form" data-title="{% trans 'Get Started' %}" data-href="{% secure_url 'account.views.register.signup' %}">{% trans 'Get Started' %}</button></li>
{% endif %}
</span>
{% endblock %}

<script type="text/javascript">
  $('.user-nav').accountbar({refresh_url: '{% url 'account.views.ajax.refresh_navigation' %}'});
</script>