Add scheduled scheduled maintenances to the status bar

This commit is contained in:
Joseph Schorr 2015-03-18 13:49:34 -04:00
parent 9254cda0db
commit bc6baae050
2 changed files with 9 additions and 2 deletions

View file

@ -1,7 +1,13 @@
<div class="announcement inline" ng-show="indicator != 'none' && indicator != 'loading' && incidents">
<div class="announcement inline"
ng-show="indicator != 'loading' && (scheduled_maintenances.length || incidents.length)">
<div ng-repeat="incident in incidents">
<span class="quay-service-status-indicator" ng-class="indicator"
ng-if="indicator != 'loading'"></span>
<a ng-href="{{ incident.shortlink }}" class="quay-service-status-description">{{ incident.name }}</a>
</div>
<div ng-repeat="scheduled in scheduled_maintenances">
<i class="fa fa-calendar" style="margin-right: 6px;"></i>
<a ng-href="{{ scheduled.shortlink }}" class="quay-service-status-description">{{ scheduled.name }}</a>
</div>
</div>