Matteo Scandolo | 4eb4ccb | 2016-01-26 11:02:16 -0800 | [diff] [blame] | 1 | <!--Mast HTML--> |
Matteo Scandolo | 413c45d | 2016-01-29 11:40:41 -0800 | [diff] [blame] | 2 | <nav class="navbar navbar-default navbar-fixed-top"> |
Matteo Scandolo | 0201281 | 2016-01-28 16:04:33 -0800 | [diff] [blame] | 3 | <div class="container"> |
| 4 | <div class="navbar-header"> |
Matteo Scandolo | 413c45d | 2016-01-29 11:40:41 -0800 | [diff] [blame] | 5 | <button ng-if="page.curr !== 'login'" type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> |
Matteo Scandolo | 0201281 | 2016-01-28 16:04:33 -0800 | [diff] [blame] | 6 | <span class="sr-only">Toggle navigation</span> |
| 7 | <span class="icon-bar"></span> |
| 8 | <span class="icon-bar"></span> |
| 9 | <span class="icon-bar"></span> |
| 10 | </button> |
| 11 | <a class="navbar-brand" href="#/home"> |
| 12 | <img src="/imgs/logo.png"> |
| 13 | </a> |
| 14 | </div> |
Matteo Scandolo | 413c45d | 2016-01-29 11:40:41 -0800 | [diff] [blame] | 15 | <div id="navbar" class="collapse navbar-collapse" close-on-route-change> |
| 16 | <ul ng-if="page.curr !== 'login'" class="nav navbar-nav pull-right"> |
Matteo Scandolo | 83100a7 | 2016-01-28 17:02:21 -0800 | [diff] [blame] | 17 | <li ng-class="{active: page.curr === 'dashboard'}"> |
| 18 | <a href="#/home">Home</a> |
| 19 | </li> |
| 20 | <li ng-class="{active: page.curr === 'user'}"> |
| 21 | <a href="#/user">User</a> |
| 22 | </li> |
| 23 | <li ng-class="{active: page.curr === 'bundle'}"> |
| 24 | <a href="#/bundle">Bundle</a> |
| 25 | </li> |
| 26 | <li ng-click="logout()"> |
| 27 | <a href="#/contact">Logout</a> |
| 28 | </li> |
Matteo Scandolo | 0201281 | 2016-01-28 16:04:33 -0800 | [diff] [blame] | 29 | </ul> |
| 30 | </div><!--/.nav-collapse --> |
Matteo Scandolo | 4eb4ccb | 2016-01-26 11:02:16 -0800 | [diff] [blame] | 31 | </div> |
Matteo Scandolo | 0201281 | 2016-01-28 16:04:33 -0800 | [diff] [blame] | 32 | </nav> |