Display improvements
This commit is contained in:
@@ -20,6 +20,7 @@ namespace LeafWeb.WebCms.Controllers
|
||||
var resultItems =
|
||||
DataService.GetLeafInputsOrdered() ;
|
||||
|
||||
// search functionality
|
||||
if (!string.IsNullOrEmpty(query))
|
||||
{
|
||||
foreach (var piece in query.Split(' ').Select(p => p.Trim()))
|
||||
@@ -33,13 +34,16 @@ namespace LeafWeb.WebCms.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
// completed leaf input for computing runtime statistics
|
||||
var completedLeafInput = DataService.GetLeafInputsOrdered().Where(li => li.CurrentStatus == LeafInputStatusType.Complete);
|
||||
var timeInProgressEstimater = new TimeInProgressEstimater(completedLeafInput.Take(20));
|
||||
|
||||
var serviceDescription = ServiceDescription();
|
||||
|
||||
var queueViewModel = new QueueViewModel
|
||||
{
|
||||
Items = resultItems, ServerDescription = serviceDescription, Query = query, CompletedLeafInput = completedLeafInput
|
||||
Items = resultItems, ServerDescription = serviceDescription, Query = query,
|
||||
TimeInProgressEstimater = timeInProgressEstimater
|
||||
};
|
||||
|
||||
return View(queueViewModel);
|
||||
|
||||
Reference in New Issue
Block a user