<div class="modal-header">
    <button type="button" class="close closebtn" data-ng-click="cancel()" aria-hidden="true" ng-disabled="clearing">&times;</button>
    <h1 class="modal-title">{{'Accelerate Summary' | translate}}</h1>
</div>
<div class="modal-body">
    <div class='alert alert-info' ng-if='clearing'>
        {{'Clearing Cache...' | translate}}
    </div>
    <div class="provisioning-summary" ng-if="provisioningSummary.length>0">
        <ul>
            <li class="alert-{{summary.type=='error'?'danger':summary.type}}" role="alert" ng-repeat="summary in provisioningSummary">
                <i class="glyphicon" ng-class="{'glyphicon-ok-sign': (summary.type=='success'), 'glyphicon-exclamation-sign': (summary.type=='error'),'glyphicon-warning-sign':(summary.type=='warning')}"></i>
                {{summary.taskName}} <a ng-if="summary.url" href="{{tenantUrl}}{{summary.url}}" target="_blank">{{summary.title}}</a> {{summary.type=='success'?"done":(summary.type=='error'?"failed.":"")}} {{ summary.errorMessage? "Error: "+summary.errorMessage:""}}
            </li>
        </ul>
    </div>
</div>
<div class="modal-footer">
    <button class="btn btn-success" ng-click="ok();" ng-disabled="clearing">{{'Close' | translate}}</button>
</div>
