@using Butter.Dtos.Jobs @using Butter.Types @using MilkStream.Services @inject JobsService JobsService
@switch (Job.Status) { case EJobStatus.Queued: @Job.Created.ToLocalTime().ToString("g")
@(DateTime.Now - Job.Created.ToLocalTime())
break; case EJobStatus.Running: case EJobStatus.Waiting: @Job.Started?.ToLocalTime().ToString("g")@(DateTime.Now - Job.Started?.ToLocalTime())
break; case EJobStatus.Completed: case EJobStatus.Canceled: case EJobStatus.Failed: @Job.Finished?.ToLocalTime().ToString("g")@(Job.Finished?.ToLocalTime() - Job.Started?.ToLocalTime())
break; }