Skip to content

Commit

Permalink
fix(): times on mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
Izak88 authored and jkuri committed Oct 3, 2017
1 parent ee7609e commit c3657e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@ <h1 class="bold">
<span *ngIf="commitMessage" class="commit-message">{{ commitMessage }}</span>
</div>
<div class="column is-2">
<span class="build-time" *ngIf="status !== 'running'">{{ totalTime | toTime }}</span>
<span class="build-time" *ngIf="status === 'running'">{{ currentTime - totalTime | toTime }}</span>
<span class="build-time" *ngIf="status !== 'running' && maxCompletedJobTime">{{ maxCompletedJobTime | toTime }}</span>
<span class="build-time" *ngIf="status !== 'running' && !maxCompletedJobTime">00:00</span>
<span class="build-time" *ngIf="status === 'running' && maxCompletedJobTime > (currentTime - minRunningJobStartTime)">{{ maxCompletedJobTime | toTime }}</span>
<span class="build-time" *ngIf="status === 'running' && (!maxCompletedJobTime || maxCompletedJobTime <= (currentTime - minRunningJobStartTime))">{{ currentTime - minRunningJobStartTime | toTime }}</span>

<span class="icon circle restart-build" (click)="restartBuild($event, build.id)" [class.disabled]="processingRequest">
<i class="ionicon ion-refresh"></i>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@
</div>
</div>
<div class="column is-2">
<span class="build-time" *ngIf="build?.status === 'running'">{{ currentTime - build?.startTime | toTime }} </span>
<span class="build-time" *ngIf="build?.status !== 'running'">{{ build?.maxTime | toTime }}</span>
<span class="build-time" *ngIf="build?.status === 'running' && build?.maxCompletedJobTime && build?.minRunningJobStartTime && build?.maxCompletedJobTime > (currentTime - build?.minRunningJobStartTime)">{{ build?.maxCompletedJobTime | toTime }} </span>
<span class="build-time" *ngIf="build?.status === 'running' && build?.maxCompletedJobTime && build?.minRunningJobStartTime && build?.maxCompletedJobTime <= (currentTime - build?.minRunningJobStartTime)">{{ currentTime - build?.minRunningJobStartTime | toTime }} </span>
<span class="build-time" *ngIf="build?.status !== 'running' && build?.maxCompletedJobTime">{{ build?.maxCompletedJobTime | toTime }}</span>

<span class="icon circle restart-build" (click)="restartBuild($event, build.id)" [class.disabled]="processingRequest">
<i class="ionicon ion-refresh"></i>
Expand Down

0 comments on commit c3657e6

Please sign in to comment.