<div class="card__overlay card__overlay--theme-purple">
  <div class="card__body" data-test-status="uploading">
    <h3 class="card__title">{{i18n 'Uploading…'}}</h3>
    <p class="card__info">
      {{#if (and upload.loaded upload.total)}}
        {{file-size-progress upload.loaded upload.total separator=(i18n 'of')}}
        {{! template-lint-disable block-indentation }}
        (<span data-test-percent-progress>
          {{~percent-progress upload.loaded upload.total~}}
        </span>)
        {{! template-lint-enable block-indentation }}
      {{else}}
        &nbsp;
      {{/if}}
    </p>

    {{progress-bar
      classNames="progress-bar--theme-purple progress-bar--sm mg-t-1"
      current=upload.loaded total=upload.total}}
  </div>
</div>

<button onclick={{onDelete}} class="card__delete">
  {{partial 'svg/close'}}
</button>
