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