This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/static/directives/quay-service-status-bar.html
2017-11-27 12:56:26 +02:00

24 lines
1.1 KiB
HTML

<div class="announcement inline"
ng-show="indicator != 'loading' && (scheduled_maintenances.length || incidents.length)">
<div ng-repeat="incident in incidents" class="message">
<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" class="message">
<i class="fa fa-calendar" style="margin-right: 6px;"></i>
<span ng-switch on="scheduled.status" style="vertical-align: middle">
<span ng-switch-when="scheduled">
Scheduled for <time-display datetime="scheduled.scheduled_for"></time-display>:
</span>
<b ng-switch-when="in_progress" style="color: #FDFFB9;">
In progress:
</b>
<b ng-switch-when="verifying" style="color: #FDFFB9;">
In progress:
</b>
</span>
<a ng-href="{{ scheduled.shortlink }}" class="quay-service-status-description">{{ scheduled.name }}</a>
</div>
</div>