mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-11-26 04:33:01 +01:00
Missing Grid uses ToBestDateString for formatting.
Fixed padding for No Data being cut off (also when loading) for the grids.
This commit is contained in:
parent
30ffe79442
commit
71e1827ef8
@ -37,4 +37,9 @@
|
||||
.t-grid td
|
||||
{
|
||||
padding: 0em 0.6em;
|
||||
}
|
||||
|
||||
.t-no-data td
|
||||
{
|
||||
padding: 0.6em 0.6em;
|
||||
}
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using NzbDrone.Core;
|
||||
using NzbDrone.Core.Providers;
|
||||
using NzbDrone.Web.Models;
|
||||
using Telerik.Web.Mvc;
|
||||
@ -38,6 +39,7 @@ namespace NzbDrone.Web.Controllers
|
||||
Overview = e.Overview,
|
||||
SeriesTitle = e.Series.Title,
|
||||
AirDate = e.AirDate.Value,
|
||||
AirDateString = e.AirDate.Value.ToBestDateString()
|
||||
});
|
||||
|
||||
return View(new GridModel(missing));
|
||||
|
@ -13,6 +13,7 @@ namespace NzbDrone.Web.Models
|
||||
public int EpisodeNumber { get; set; }
|
||||
public string EpisodeTitle { get; set; }
|
||||
public DateTime AirDate { get; set; }
|
||||
public string AirDateString { get; set; }
|
||||
public string Overview { get; set; }
|
||||
}
|
||||
}
|
@ -20,7 +20,8 @@ Missing
|
||||
columns.Bound(c => c.SeasonNumber).Title("Season").Width(40);
|
||||
columns.Bound(c => c.EpisodeNumber).Title("Episode").Width(40);
|
||||
columns.Bound(c => c.EpisodeTitle).Title("Episode Title");
|
||||
columns.Bound(c => c.AirDate).Format("{0:d}")
|
||||
columns.Bound(c => c.AirDate)
|
||||
.ClientTemplate("<#= AirDateString #>")
|
||||
.Title("Air Date")
|
||||
.Width(80);
|
||||
columns.Bound(c => c.EpisodeId)
|
||||
|
Loading…
Reference in New Issue
Block a user