63 lines
2.7 KiB
HTML
Executable file
63 lines
2.7 KiB
HTML
Executable file
<section class="navbar navbar-fixed-top navbar-inverse"data-ng-controller="HeaderController" ng-hide="hideNav"
|
|
<div class="container" >
|
|
<div class="navbar-header">
|
|
<button class="navbar-toggle" type="button" data-ng-click="toggleCollapsibleMenu()">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a href="/#!/" class="navbar-brand">
|
|
<!-- <i class="fa fa-5 fa-heartbeat"></i> -->
|
|
Med<span>Form</span>
|
|
</a>
|
|
</div>
|
|
<nav class="collapse navbar-collapse" collapse="!isCollapsed" role="navigation">
|
|
<ul class="nav navbar-nav" data-ng-if="menu.shouldRender(authentication.user);">
|
|
<li data-ng-repeat="item in menu.items | orderBy: 'position'" data-ng-if="item.shouldRender(authentication.isAuthenticated());" ng-switch="item.menuItemType" ui-route="{{item.uiRoute}}" class="{{item.menuItemClass}}" ng-class="{active: ($uiRoute)}" dropdown="item.menuItemType === 'dropdown'">
|
|
<a ng-switch-when="dropdown" class="dropdown-toggle" dropdown-toggle>
|
|
<span data-ng-bind="item.title"></span>
|
|
<b class="caret"></b>
|
|
</a>
|
|
<ul ng-switch-when="dropdown" class="dropdown-menu">
|
|
<li data-ng-repeat="subitem in item.items | orderBy: 'position'" data-ng-if="subitem.shouldRender(authentication.isAuthenticated());" ui-route="{{subitem.uiRoute}}" ng-class="{active: $uiRoute}">
|
|
<a href="/#!/{{subitem.link}}" data-ng-bind="subitem.title"></a>
|
|
</li>
|
|
</ul>
|
|
<a ng-switch-default href="/#!/{{item.link}}" data-ng-bind="item.title"></a>
|
|
</li>
|
|
</ul>
|
|
<ul class="nav navbar-nav navbar-right" data-ng-hide="authentication.isAuthenticated()">
|
|
<li ui-route="/signup" ng-class="{active: $uiRoute}">
|
|
<a href="/#!/signup">Sign Up</a>
|
|
</li>
|
|
<li class="divider-vertical"></li>
|
|
<li ui-route="/signin" ng-class="{active: $uiRoute}">
|
|
<a href="/#!/signin">Sign In</a>
|
|
</li>
|
|
</ul>
|
|
<ul class="nav navbar-nav navbar-right" data-ng-show="authentication.isAuthenticated()">
|
|
<li class="dropdown" dropdown>
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" dropdown-toggle>
|
|
<span data-ng-bind="authentication.user.displayName"></span> <b class="caret"></b>
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
<li>
|
|
<a href="/#!/settings/profile">Edit Profile</a>
|
|
</li>
|
|
<li>
|
|
<a href="/#!/settings/password">Change Password</a>
|
|
</li>
|
|
<li data-ng-show="authentication.isAuthenticated().provider === 'local'">
|
|
<a href="/#!/settings/password">Change Password</a>
|
|
</li>
|
|
<li class="divider"></li>
|
|
<li>
|
|
<a ng-click="signout()">Signout</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</section> |