New: AirTime will be shown in Series grid details.

pull/6/head
Mark McDowall 12 years ago
parent ac728667ec
commit 4947252f93

@ -201,7 +201,8 @@ namespace NzbDrone.Web.Controllers
EpisodeCount = s.EpisodeCount, EpisodeCount = s.EpisodeCount,
EpisodeFileCount = s.EpisodeFileCount, EpisodeFileCount = s.EpisodeFileCount,
NextAiring = s.NextAiring == null ? String.Empty : s.NextAiring.Value.ToBestDateString(), NextAiring = s.NextAiring == null ? String.Empty : s.NextAiring.Value.ToBestDateString(),
NextAiringSorter = s.NextAiring == null ? "12/31/9999" : s.NextAiring.Value.ToString("MM/dd/yyyy") NextAiringSorter = s.NextAiring == null ? "12/31/9999" : s.NextAiring.Value.ToString("MM/dd/yyyy"),
AirTime = s.AirTimes
}).ToList(); }).ToList();
return series; return series;

@ -27,6 +27,7 @@ namespace NzbDrone.Web.Models
public string NextAiringSorter { get; set; } public string NextAiringSorter { get; set; }
public string Details { get; set; } public string Details { get; set; }
public string Network { get; set; } public string Network { get; set; }
public string AirTime { get; set; }
public IList<int> Seasons { get; set; } public IList<int> Seasons { get; set; }

@ -181,6 +181,7 @@
}, //Commands }, //Commands
{ sWidth: '60px', "mDataProp": "Details", "bSortable": false, "bVisible": false, "fnRender": function (row) { { sWidth: '60px', "mDataProp": "Details", "bSortable": false, "bVisible": false, "fnRender": function (row) {
var result = "<b>Airs Day of Week: </b>" + row.aData["AirsDayOfWeek"] + "<br/>" + var result = "<b>Airs Day of Week: </b>" + row.aData["AirsDayOfWeek"] + "<br/>" +
"<b>Air Time: </b>" + row.aData["AirTime"] + "<br/>" +
"<b>Overview: </b>" + row.aData["Overview"] + "<br/>"; "<b>Overview: </b>" + row.aData["Overview"] + "<br/>";
return result; return result;
} }

Loading…
Cancel
Save