<div class="waitarea">
    <div ng-show="state.phase == 'waiting'" translate>Waiting for task to begin</div>
    <div ng-show="state.phase == 'running'">
        <span ng-show="state.text">{{ state.text }}</span>
        <div class="progress">

            <div class="progress-bar progress-bar-striped" role="progressbar" aria-valuenow="{{state.progress}}" aria-valuemin="0" aria-valuemax="100" style="width:{{state.progress}}%">
            </div>
        </div>
    </div>

    <div ng-show="state.phase == 'paused'" >
        {{'Server is currently paused,' | translate}} <a style="cursor: pointer" ng-click="ServerStatus.resume()" translate>resume now</a>
    </div>

    <div class="actions-container" ng-show="allowCancel">        
        <button type="button" class="ekup-button ekup-button-secondary ekup-error-button" ng-click="cancelTask()">
            <i class="ic-slash"></i>
            <span translate>Cancel</span>
        </button>
    </div>

</div>
