All files / src/app/core/navigation/task-manager task-manager.component.html

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 865x                                                                                                                                                                          
<ng-template #popTemplate>
  <!-- Executing -->
  <div *ngIf="executingTasks.length > 0">
    <div class="separator">EXECUTING</div>
    <hr>
    <div *ngFor="let executingTask of executingTasks">
      <table>
        <tr>
          <td rowspan="3"  class="icon-col text-center">
            <span class="fa-stack fa-2x text-info">
              <i class="fa fa-circle fa-stack-2x"></i>
              <i class="fa fa-stack-1x fa-inverse fa-spinner fa-spin"></i>
            </span>
          </td>
          <td colspan="3"><strong>{{ executingTask.description }}</strong></td>
        </tr>
        <tr>
          <td colspan="2">
            <small class="date">{{ executingTask.begin_time | cdDate }}</small>
          </td>
          <td class="text-right italic" nowrap *ngIf="executingTask.progress"><span>{{ executingTask.progress }} %</span></td>
        </tr>
      </table>
      <hr>
    </div>
  </div>
  <!-- Finished -->
  <div *ngIf="finishedTasks.length > 0">
    <div class="separator">FINISHED</div>
    <hr>
    <div *ngFor="let finishedTask of finishedTasks">
      <table>
        <tr>
          <td rowspan="3"  class="icon-col text-center">
            <span *ngIf="!finishedTask.errorMessage">
              <span class="fa-stack fa-2x text-success">
                <i class="fa fa-circle fa-stack-2x"></i>
                <i class="fa fa-stack-1x fa-inverse fa-check"></i>
              </span>
            </span>
            <span *ngIf="finishedTask.errorMessage">
              <span class="fa-stack fa-2x text-danger">
                <i class="fa fa-circle fa-stack-2x"></i>
                <i class="fa fa-stack-1x fa-inverse fa-exclamation-triangle"></i>
              </span>
            </span>
          </td>
          <td colspan="2">
            <strong>{{ finishedTask.description }}</strong>
          </td>
        </tr>
        <tr>
          <td></td>
          <td>
            <span *ngIf="finishedTask.errorMessage" class="text-danger">
              {{ finishedTask.errorMessage }}
            </span>
          </td>
        </tr>
        <tr>
          <td colspan="2">
            <small class="date">{{ finishedTask.end_time | cdDate }}</small>
          </td>
        </tr>
      </table>
      <hr>
    </div>
  </div>
  <!-- Empty -->
  <div *ngIf="executingTasks.length === 0 && finishedTasks.length === 0">
    <div class="message" i18n>There are no background tasks.</div>
  </div>
</ng-template>
<a [popover]="popTemplate"
   placement="bottom"
   container="body"
   outsideClick="true"
   i18n-title
   title="Background Tasks">
  <i class="fa fa-fw"
     [ngClass]="icon"></i>
  <span i18n
        class="visible-xs-inline-block">Background Tasks</span>
  <span *ngIf="executingTasks.length > 0"> ({{ executingTasks.length }})</span>
</a>