2012-02-07 01:22:17 +00:00
@using NzbDrone.Core.Model
@using NzbDrone.Web.Helpers
@using NzbDrone.Web.Models
@model UpcomingEpisodeModel
@{
Layout = null;
}
2012-02-12 23:37:55 +00:00
<tr class='episodeId_@(Model.EpisodeId) data-row@(ViewData["AltRow"] == null || !(bool)ViewData["AltRow"] ? "" : " alt-row")'>
2012-02-07 01:22:17 +00:00
<td>@Html.ActionLink(Model.SeriesTitle, "Details", "Series", new { seriesId = Model.SeriesId }, null)</td>
2012-02-09 22:34:59 +00:00
<td>@Model.EpisodeNumbering</td>
2012-02-07 01:22:17 +00:00
<td>@Model.Title</td>
<td>
@{ if(Model.AirDateTime >= DateTime.Today.AddDays(-1) && Model.AirDateTime <= DateTime.Today.AddDays(2))
{
@(Model.AirTime)
}
else
{
@(Model.AirDate + " at " + Model.AirTime)
}
}
</td>
@{
string cellColourClass = String.Empty;
if (Model.Status == "Missing")
{
cellColourClass = "episodeMissing";
}
}
2012-03-16 17:09:51 +00:00
@{
var statusTitle = Model.Status;
if (Model.Status == "AirsToday")
{
statusTitle = "Airs today";
}
if (Model.Status == "NotAired")
{
statusTitle = "Not yet aired";
}
}
2012-02-07 01:22:17 +00:00
@*Commands Column*@
<td class="@cellColourClass">
2012-03-16 17:09:51 +00:00
<img src='../../Content/Images/@(Model.Status).png' alt='@Model.Status' title='@statusTitle' class='gridImage statusImage' />
2012-02-26 09:32:39 +00:00
@Ajax.ImageActionLink("../../Content/Images/Search.png", new { Alt = "Search", Title = "Search for episode", @class = "gridAction" }, "Search", "Episode", new { episodeId = Model.EpisodeId }, null, null)
2012-02-07 01:22:17 +00:00
</td>
</tr>
<tr class='detail-row@(ViewData["AltRow"] == null || !(bool)ViewData["AltRow"] ? "" : " alt-row")'>
<td colspan="6">
<b>Overview: </b>@Model.Overview
</td>
</tr>