14 lines
468 B
Plaintext
14 lines
468 B
Plaintext
@using LeafWeb.Core.Entities
|
|
@model Tuple<LeafInput,IQueryable<LeafInput>>
|
|
@{
|
|
var leafInput = Model.Item1;
|
|
var observations = Model.Item2.Take(20);
|
|
|
|
var estimater = new TimeInProgressEstimater(observations);
|
|
var totalTimeEstimate = estimater.EstimateTimeInProgress(leafInput);
|
|
var remaining = totalTimeEstimate - leafInput.TimeInProgress;
|
|
if (remaining > TimeSpan.Zero)
|
|
{
|
|
<text>@remaining.ToRoundedReadableString()</text>
|
|
}
|
|
} |