{% if include_top_links != False %}
  <div id="toplinks">
    <ul class="toplinks--list {{ user.is_authenticated|yesno:"logged-in,login" }}">
      {% block user-info %}
        {% if user.is_authenticated %}
          {% block logged-in %}
            <li class="toplinks--list-item">
              {% if account_url %}<a class="account-link" href="{{ account_url }}">{% endif %}
              <span class="connected-user">{% block user-info-user-name %}{% include "includes/user-info-user-name.html" %}{% endblock %}</span>{% if account_url %}</a>{% endif %}
            </li><li class="toplinks--list-item">
              <a accesskey="o" class="logout" href="{{ logout_url }}">{% block user-info-logout-label %}{% include "includes/user-info-logout-label.html" %}{% endblock %}</a>
            </li>
          {% endblock %}
        {% else %}
          {% block login %}
            <li class="toplinks--list-item">
              <a accesskey="2" class="login-link" href="{{ login_url }}"
              >{% block user-info-login-label %}{% include "includes/user-info-login-label.html" %}{% endblock %}
                {% if registration_url and include_registration_link != False %}
                  </a>
                  </li><li class="toplinks--list-item">
                    <a class="registration" href="{{registration_url}}"
                    >{% block user-info-registration-label %}{% include "includes/user-info-registration-label.html" %}{% endblock %}{% endif %}</a>
            </li>
          {% endblock %}
        {% endif %}
      {% endblock %}
    </ul>
  </div>
{% endif %}
