<div ng-controller="NavbarCtrl">
    <nav class="navbar navbar-fixed-top o_nav">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#!/" title="darkID">
                    <i title="Server" class="fa fa-cube fa-1x"></i> decentralized-blogging-platform
                </a>
            </div>
            <div class="navbar-collapse collapse navbar-responsive-collapse">
                <ul class="nav navbar-nav">
                    <li>
                        <a href="#!/stats" title="Stats">
                            <i title="Server" class="fa fa-th-large fa-1x"></i> Models
                        </a>
                    </li>
                </ul>
                <ul class="nav navbar-nav navbar-right" ng-show="user"><!--logged-->
                    <li>
                        <a href="#!/profile">
                            <i title="Profile" class="fa fa-user fa-1x"></i> {{user.username}}
                        </a>
                    </li>
                    <li>
                        <a href="" ng-click="logout()">
                            <i title="Create Account" class="fa fa-sign-out fa-1x"></i> Logout
                        </a>
                    </li>
                </ul>
                <ul class="nav navbar-nav navbar-right" ng-show="!user"><!--unlogged-->
                    <li>
                        <a href="#!/signup">
                            <i title="Create Account" class="fa fa-sign-in fa-1x"></i> Signup
                        </a>
                    </li>
                </ul>
                <ul class="nav navbar-nav navbar-right" ng-show="!user"><!--unlogged-->
                    <li>
                        <a href="#!/login">
                            <i title="Login" class="fa fa-sign-in fa-1x"></i> Login
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
</div>
