blob: 7fabbe4c26e2f1d12257509e3cb24b6da9b46796 [file] [log] [blame]
Matteo Scandolod2044a42017-08-07 16:08:28 -07001
2<!--
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16-->
17
18
Matteo Scandolo42e3fe22016-05-27 14:52:37 -070019<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 Scandolo1a5bf202016-05-31 14:26:26 -070024 <ul class="list-group" ng-show="!vm.showNoSync">
Matteo Scandolo42e3fe22016-05-27 14:52:37 -070025 <li class="list-group-item" ng-repeat="(syncName, syncStatus) in vm.synchronizers">
Matteo Scandolo99ac4ae2016-06-01 08:35:15 -070026 <span class="badge" ng-class="{success: syncStatus.status, warning: !syncStatus.status}">
Matteo Scandolo42e3fe22016-05-27 14:52:37 -070027 <span ng-show="syncStatus.status"><i class="glyphicon glyphicon-ok"></i></span>
Matteo Scandolo99ac4ae2016-06-01 08:35:15 -070028 <span ng-hide="syncStatus.status"><i class="glyphicon glyphicon-time"></i></span>
Matteo Scandolo42e3fe22016-05-27 14:52:37 -070029 </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>