Favicons, page improvements

This commit is contained in:
2017-01-19 10:55:11 -05:00
parent d799363651
commit b80f02a25e
53 changed files with 174 additions and 36 deletions
+22 -4
View File
@@ -1,10 +1,12 @@
using System.Linq;
using System;
using System.Linq;
using System.Web.Mvc;
using Hangfire;
using LeafWeb.Core.Entities;
using LeafWeb.Core.Utility;
using LeafWeb.WebCms.Models;
using LeafWeb.WebCms.Services;
using LeafWeb.WebCms.Services.PiscalQueue;
namespace LeafWeb.WebCms.Controllers
{
@@ -12,12 +14,28 @@ namespace LeafWeb.WebCms.Controllers
{
public ActionResult Index()
{
var viewModel =
var resultItems =
DataService.GetLeafInputs()
.OrderByDescending(f => f.Id)
.ToList()
.Select(leafInput => new ResultStatusViewModel(leafInput));
return View(viewModel);
.Select(leafInput => new ResultItemViewModel(leafInput));
string serviceDescription;
try
{
serviceDescription = new PiscalService().ServiceDescription;
}
catch (Exception)
{
serviceDescription = "Exception while initializing";
}
var queueViewModel = new QueueViewModel
{
Items = resultItems, ServerDescription = serviceDescription
};
return View(queueViewModel);
}
public ActionResult Details(int id)