<!-- Fixed navbar -->
<div class="navbar navbar-fixed-top" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="{{ path('_admin_backend_index') }}"><img src="{{ lsImageAssets.logoPathSmall}}" width="130px" alt="logo" /> <span style="color:#ccc;paddin-top:10px;">UWS</span></a>
        </div>
        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                {% if is_granted('ROLE_USER') %}
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Overview <b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            {% if is_granted('ROLE_DOCS') %}
                                <li><a href="{{ path('_sso_help_index') }}">Help</a></li>
                            {% endif %}
                            {% if is_granted('ROLE_ADMIN') %}
                                <li><a href="{{ path('_admin_backend_index') }}">Administration</a></li>
                            {% endif %}
                            {% if is_granted('ROLE_SERVICE_ADMIN') %}
                                <li><a href="{{ path('_sso_demo_index') }}">Demo</a></li>
                            {% endif %}
                            {% if is_granted('ROLE_SUPER_ADMIN') %}
                                <li><a href="{{ path('_sso_backend_security_user') }}">Backend User</a></li>
                            {% endif %}
                        </ul>
                    </li>
                {% endif %}
                {% block navigationitems %}{% endblock %}
                {% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
                    {% if isSamlActive %}
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ app.user.username }} <b
                                        class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href="{{ path('saml_backend_user_current_profile') }}">Profile</a></li>
                                {% if is_granted('ROLE_SUPER_ADMIN_EXTENDED') %}
                                    <li><a href="{{ path('admin_saml_auth_user_log') }}">UserLogList</a></li>
                                    <li><a href="{{ path('admin_activitylog_list') }}">ActivityLogList</a></li>
                                {% endif %}
                                <li><a href="{{ path('saml_backend_user_logout') }}">Logout</a></li>
                            </ul>
                        </li>
                    {% else %}
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ app.user.username }} <b
                                        class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href="{{ path('saml_backend_user_current_profile') }}">Profile</a></li>
                                <li><a href="{{ path('fos_user_security_logout') }}">Logout</a></li>
                            </ul>
                        </li>
                    {% endif %}
                {% else %}
                    <li><a href="{{ path('fos_user_security_login') }}">Login</a></li>
                {% endif %}
            </ul>
        </div><!--/.nav-collapse -->
    </div>
</div>
{% block navigationfooter %}{% endblock %}
