{% load i18n %}
<li class="dropdown {% if RTL %} navbar-left {% else %} navbar-right {% endif %}">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
            {{ request.user.username }}<span class="caret"></span>
        </a>
        <ul class="dropdown-menu">
            <li>
                <a href="{% url "logout" %}">
                    {% trans "Logout" %}
                </a>
            </li>
        </ul>
    </li>

{% load i18n %}
<li class="dropdown {% if RTL %} navbar-left {% else %} navbar-right {% endif %}">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
            <span class="glyphicon glyphicon-user" aria-hidden="true"></span> {{ request.user.username }} <span class="caret"></span>
        </a>
        <ul class="dropdown-menu">
            <li>
                <a href="{% url "logout" %}">
                    <span class="glyphicon glyphicon-log-out" aria-hidden="true"></span> {% trans "Logout" %}
                </a>
            </li>
        </ul>
    </li>

Add icons to user menu
Add icons to user menu
