Favicons, page improvements
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace LeafWeb.WebCms.Models
|
||||
{
|
||||
public class QueueViewModel
|
||||
{
|
||||
public string ServerDescription { get; set; }
|
||||
public string ServerStatus { get; set; }
|
||||
public IEnumerable<ResultItemViewModel> Items { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ using LeafWeb.Core.Entities;
|
||||
|
||||
namespace LeafWeb.WebCms.Models
|
||||
{
|
||||
public class ResultStatusViewModel
|
||||
public class ResultItemViewModel
|
||||
{
|
||||
public int LeafInputId { get; set; }
|
||||
public string LeafInputName { get; set; }
|
||||
@@ -22,9 +22,9 @@ namespace LeafWeb.WebCms.Models
|
||||
//public string[] LeafOutputFilenames { get; set; }
|
||||
//public bool HasLeafChartOutputFile { get; set; }
|
||||
|
||||
static ResultStatusViewModel()
|
||||
static ResultItemViewModel()
|
||||
{
|
||||
Mapper.CreateMap<LeafInput, ResultStatusViewModel>()
|
||||
Mapper.CreateMap<LeafInput, ResultItemViewModel>()
|
||||
.ForMember(dest => dest.LeafInputId, opt => opt.MapFrom(src => src.Id))
|
||||
.ForMember(dest => dest.HasLeafChart, opt => opt.ResolveUsing(src => src.OutputFiles.Any(o => o.IsLeafChartFile)))
|
||||
//.ForMember(dest => dest.LeafOutputFilenames,
|
||||
@@ -52,7 +52,7 @@ namespace LeafWeb.WebCms.Models
|
||||
;
|
||||
}
|
||||
|
||||
public ResultStatusViewModel(LeafInput leafInput)
|
||||
public ResultItemViewModel(LeafInput leafInput)
|
||||
{
|
||||
Mapper.Map(leafInput, this);
|
||||
}
|
||||
Reference in New Issue
Block a user