Matteo Scandolo | 86bc26a | 2017-01-18 11:06:47 -0800 | [diff] [blame^] | 1 | <!-- Custom template for Typeahead --> |
| 2 | <script type="text/ng-template" id="customTemplate.html"> |
| 3 | <a> |
| 4 | <span ng-bind-html="match.label.label | uibTypeaheadHighlight:query"></span> |
| 5 | <code class="pull-right"> |
| 6 | {{match.label.type}} |
| 7 | </code> |
| 8 | </a> |
| 9 | </script> |
| 10 | <!-- END Custom template for Typeahead --> |
Matteo Scandolo | 266907e | 2016-12-20 13:41:42 -0800 | [diff] [blame] | 11 | |
| 12 | <!-- Header --> |
| 13 | <nav class="navbar navbar-default navbar-fixed-top"> |
| 14 | <div class="container-fluid"> |
| 15 | <div class="navbar-header"> |
| 16 | <div id="mobile-menu"> |
| 17 | <minimaliza-menu></minimaliza-menu> |
| 18 | </div> |
| 19 | <a class="navbar-brand" href="#/"> |
Matteo Scandolo | a8a6fbb | 2016-12-21 16:59:08 -0800 | [diff] [blame] | 20 | <img class="img-responsive" ng-src="{{vm.getLogo()}}" alt=""> |
| 21 | <span>v.{{vm.version}}</span> |
Matteo Scandolo | 266907e | 2016-12-20 13:41:42 -0800 | [diff] [blame] | 22 | </a> |
| 23 | </div> |
| 24 | <div id="navbar" class="navbar-collapse collapse"> |
| 25 | <minimaliza-menu></minimaliza-menu> |
Matteo Scandolo | 67c105f | 2017-01-09 09:30:52 -0800 | [diff] [blame] | 26 | <form class="navbar-form navbar-left"> |
| 27 | <input |
| 28 | type="text" |
| 29 | class="form-control" |
Matteo Scandolo | ac8c8c2 | 2017-01-09 15:04:32 -0800 | [diff] [blame] | 30 | placeholder="Navigate routes (press 'f' to select)" |
Matteo Scandolo | 67c105f | 2017-01-09 09:30:52 -0800 | [diff] [blame] | 31 | style="width: 275px" |
| 32 | ng-model="vm.query" |
Matteo Scandolo | 86bc26a | 2017-01-18 11:06:47 -0800 | [diff] [blame^] | 33 | uib-typeahead="state for state in vm.search($viewValue) | limitTo:30" |
| 34 | typeahead-template-url="customTemplate.html" |
Matteo Scandolo | 67c105f | 2017-01-09 09:30:52 -0800 | [diff] [blame] | 35 | typeahead-on-select="vm.routeSelected($item, $model, $label)"> |
| 36 | </form> |
Matteo Scandolo | 266907e | 2016-12-20 13:41:42 -0800 | [diff] [blame] | 37 | <ul class="nav navbar-nav navbar-right"> |
| 38 | <!--<li class="dropdown">--> |
| 39 | <!--<a ui-sref="main.versions">--> |
| 40 | <!--<i class="fa fa-bell"></i>--> |
| 41 | <!--<span ng-if="vm.newNotifications.length > 0" class="label label-warning pull-right">{{vm.newNotifications.length}}</span>--> |
| 42 | <!--</a>--> |
| 43 | <!--</li>--> |
| 44 | <li class=" profil-link"> |
| 45 | <a ui-sref="commonviews.login"> |
Matteo Scandolo | a8a6fbb | 2016-12-21 16:59:08 -0800 | [diff] [blame] | 46 | <span class="profile-address">{{vm.userEmail}}</span> |
Matteo Scandolo | 266907e | 2016-12-20 13:41:42 -0800 | [diff] [blame] | 47 | <img src="../../images/profile.jpg" class="img-circle" alt=""> |
| 48 | </a> |
Matteo Scandolo | 63e43eb | 2016-12-14 14:18:53 -0800 | [diff] [blame] | 49 | </li> |
| 50 | </ul> |
| 51 | </div> |
Matteo Scandolo | 266907e | 2016-12-20 13:41:42 -0800 | [diff] [blame] | 52 | </div> |
| 53 | </nav> |