{% load i18n %}
{% load account_tags %}

<ul class="nav navbar-nav pull-right">
  {% if user.is_authenticated %}
  <li class="dropdown">
    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
      {% user_display user %}
      <b class="caret"></b>
    </a>
    <ul class="dropdown-menu">
      <li><a href="{% url 'tasks_home' %}"><i class="fa fa-question-circle fa-fw"></i> Zadania</a></li>
      {% if user.is_staff %}
      <li><a href="{% url 'admin:index' %}"><i class="fa fa-cog fa-fw"></i> {% trans "Admin" %}</a></li>
      {% endif %}
      <li class="divider"></li>
      <li>
        <a id="account_logout" href="{% url "account_logout" %}"><i class="fa fa-power-off fa-fw"></i> {% trans "Log out" %}</a>
      </li>
    </ul>
  </li>
  {% else %}
  <li><a href="{% url "account_login" %}">{% trans "Log in" %}</a></li>
  {% if ACCOUNT_OPEN_SIGNUP %}
  <li><a href="{% url "account_signup" %}">{% trans "Sign up" %}</a></li>
  {% endif %}
  {% endif %}
</ul>

<form id="accountLogOutForm" style="display: none;" action="{% url "account_logout" %}" method="POST">
  {% csrf_token %}
</form>

{% load i18n %}
{% load account_tags %}

<ul class="nav navbar-nav pull-right">
  {% if user.is_authenticated %}
  <li class="dropdown">
    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
      <span class="fa fa-user fa-fw"></span> {% user_display user %}
      <b class="caret"></b>
    </a>
    <ul class="dropdown-menu">
      <li><a href="{% url 'tasks_home' %}"><i class="fa fa-question-circle fa-fw"></i> Zadania</a></li>
      {% if user.is_staff %}
      <li><a href="{% url 'admin:index' %}"><i class="fa fa-cog fa-fw"></i> {% trans "Admin" %}</a></li>
      {% endif %}
      <li class="divider"></li>
      <li>
        <a id="account_logout" href="{% url "account_logout" %}"><i class="fa fa-power-off fa-fw"></i> {% trans "Log out" %}</a>
      </li>
    </ul>
  </li>
  {% else %}
  <li><a href="{% url "account_login" %}">{% trans "Log in" %}</a></li>
  {% if ACCOUNT_OPEN_SIGNUP %}
  <li><a href="{% url "account_signup" %}">{% trans "Sign up" %}</a></li>
  {% endif %}
  {% endif %}
</ul>

<form id="accountLogOutForm" style="display: none;" action="{% url "account_logout" %}" method="POST">
  {% csrf_token %}
</form>

Improve UI a tiny wee bit.
Improve UI a tiny wee bit.
