Matteo Scandolo | 42e3fe2 | 2016-05-27 14:52:37 -0700 | [diff] [blame^] | 1 | <div class="sync-status-container"> |
| 2 | <div class="btn btn-default" ng-click="vm.showNotificationPanel = !vm.showNotificationPanel"> |
| 3 | <i class="glyphicon glyphicon-inbox"></i> |
| 4 | </div> |
| 5 | <div class="notification-panel panel panel-default" ng-show="vm.showNotificationPanel"> |
| 6 | <ul class="list-group" ng-show="vm.showNoSync"> |
| 7 | <li class="list-group-item" ng-repeat="(syncName, syncStatus) in vm.synchronizers"> |
| 8 | <span class="badge" ng-class="{success: syncStatus.status, danger: !syncStatus.status}"> |
| 9 | <span ng-show="syncStatus.status"><i class="glyphicon glyphicon-ok"></i></span> |
| 10 | <span ng-hide="syncStatus.status"><i class="glyphicon glyphicon-remove"></i></span> |
| 11 | </span> |
| 12 | <b>{{syncName}}</b> |
| 13 | <br/> |
| 14 | <small><i>{{syncStatus.info.last_run | date:'mediumTime'}}</i></small> |
| 15 | </li> |
| 16 | </ul> |
| 17 | <div class="alert alert-info" ng-show="vm.showNoSync"> |
| 18 | No syncronizers are running. |
| 19 | </div> |
| 20 | </div> |
| 21 | </div> |