{% set use_browserid = LANG|lower in config.BROWSERID_LOCALES.split(' ') %}
{% if user.is_authenticated() %}
  <ul class="user-state">
    {% set username = request.user.username %}
      <li><a href="{{ url('devmo.views.profile_view', username=username) }}">{{ _('{username}') | f(username=username) }}</a></li>
      <li><a href="{{ url('users.logout') }}">{{ _('Sign out') }}</a></li>
  </ul>
{% else %}
<ul class="user-state signed-out" data-browserid-header-signin-html="{{ url('users.browserid_header_signin_html') }}?next={{ next_url }}">
    <li><a href="{{ url('users.register') }}">{{ _('Join MDN') }}</a></li>
    <li><a href="{{ url('users.login') }}">{{ _('Log in') }}</a></li>
  </ul>
{% endif %}
