| |
| <!-- |
| Copyright 2017-present Open Networking Foundation |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| |
| <div class="sync-status-container"> |
| <div class="btn btn-default" ng-click="vm.showNotificationPanel = !vm.showNotificationPanel"> |
| <i class="glyphicon glyphicon-inbox"></i> |
| </div> |
| <div class="notification-panel panel panel-default" ng-show="vm.showNotificationPanel"> |
| <ul class="list-group" ng-show="!vm.showNoSync"> |
| <li class="list-group-item" ng-repeat="(syncName, syncStatus) in vm.synchronizers"> |
| <span class="badge" ng-class="{success: syncStatus.status, warning: !syncStatus.status}"> |
| <span ng-show="syncStatus.status"><i class="glyphicon glyphicon-ok"></i></span> |
| <span ng-hide="syncStatus.status"><i class="glyphicon glyphicon-time"></i></span> |
| </span> |
| <b>{{syncName}}</b> |
| <br/> |
| <small><i>{{syncStatus.info.last_run | date:'mediumTime'}}</i></small> |
| </li> |
| </ul> |
| <div class="alert alert-info" ng-show="vm.showNoSync"> |
| No syncronizers are running. |
| </div> |
| </div> |
| </div> |