{% load combo %}

{% if include_top_links != False %}
<div id="toplinks">
{% block user-info %}
{% skeleton_extra_placeholder user-info %}
  {% if user.is_authenticated %}
  <span class="logged-in">
    {% 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 %}
    <a accesskey="o" class="logout" href="{{ logout_url }}">{% block user-info-logout-label %}{% include "includes/user-info-logout-label.html" %}{% endblock %}</a>
  </span>
  {% else %}
     <span class="login"><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>
      <span class="user-info--separator"></span>
      <a class="registration" href="{{registration_url}}"
      >{% block user-info-registration-label %}{% include "includes/user-info-registration-label.html" %}{% endblock %}{% endif %}</a></span>
  {% endif %}
{% end_skeleton_extra_placeholder %}
{% endblock %}
</div>
{% endif %}
