Matteo Scandolo | d2044a4 | 2017-08-07 16:08:28 -0700 | [diff] [blame] | 1 | |
| 2 | <!-- |
| 3 | Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
| 18 | |
Matteo Scandolo | 42e3fe2 | 2016-05-27 14:52:37 -0700 | [diff] [blame] | 19 | <div class="sync-status-container"> |
| 20 | <div class="btn btn-default" ng-click="vm.showNotificationPanel = !vm.showNotificationPanel"> |
| 21 | <i class="glyphicon glyphicon-inbox"></i> |
| 22 | </div> |
| 23 | <div class="notification-panel panel panel-default" ng-show="vm.showNotificationPanel"> |
Matteo Scandolo | 1a5bf20 | 2016-05-31 14:26:26 -0700 | [diff] [blame] | 24 | <ul class="list-group" ng-show="!vm.showNoSync"> |
Matteo Scandolo | 42e3fe2 | 2016-05-27 14:52:37 -0700 | [diff] [blame] | 25 | <li class="list-group-item" ng-repeat="(syncName, syncStatus) in vm.synchronizers"> |
Matteo Scandolo | 99ac4ae | 2016-06-01 08:35:15 -0700 | [diff] [blame] | 26 | <span class="badge" ng-class="{success: syncStatus.status, warning: !syncStatus.status}"> |
Matteo Scandolo | 42e3fe2 | 2016-05-27 14:52:37 -0700 | [diff] [blame] | 27 | <span ng-show="syncStatus.status"><i class="glyphicon glyphicon-ok"></i></span> |
Matteo Scandolo | 99ac4ae | 2016-06-01 08:35:15 -0700 | [diff] [blame] | 28 | <span ng-hide="syncStatus.status"><i class="glyphicon glyphicon-time"></i></span> |
Matteo Scandolo | 42e3fe2 | 2016-05-27 14:52:37 -0700 | [diff] [blame] | 29 | </span> |
| 30 | <b>{{syncName}}</b> |
| 31 | <br/> |
| 32 | <small><i>{{syncStatus.info.last_run | date:'mediumTime'}}</i></small> |
| 33 | </li> |
| 34 | </ul> |
| 35 | <div class="alert alert-info" ng-show="vm.showNoSync"> |
| 36 | No syncronizers are running. |
| 37 | </div> |
| 38 | </div> |
| 39 | </div> |