mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-23 02:05:27 +02:00
61 lines
1.7 KiB
Plaintext
61 lines
1.7 KiB
Plaintext
@using NzbDrone.Core.Model
|
|
@using NzbDrone.Web.Helpers
|
|
@using NzbDrone.Web.Models
|
|
@model UpcomingEpisodeModel
|
|
|
|
@{
|
|
Layout = null;
|
|
}
|
|
|
|
<tr class="data-row@(ViewData["AltRow"] == null || !(bool)ViewData["AltRow"] ? "" : " alt-row")" data-episode-id="@Model.EpisodeId">
|
|
<td>@Html.ActionLink(Model.SeriesTitle, "Details", "Series", new { seriesId = Model.SeriesId }, null)</td>
|
|
<td>@Model.EpisodeNumbering</td>
|
|
<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";
|
|
}
|
|
}
|
|
|
|
@{
|
|
var statusTitle = Model.Status;
|
|
|
|
if (Model.Status == "AirsToday")
|
|
{
|
|
statusTitle = "Airs today";
|
|
}
|
|
|
|
if (Model.Status == "NotAired")
|
|
{
|
|
statusTitle = "Not yet aired";
|
|
}
|
|
}
|
|
|
|
@*Commands Column*@
|
|
<td class="@cellColourClass">
|
|
<i class="gridImage statusImage" title="@Model.Status" data-status="@Model.Status" ></i>
|
|
@Ajax.IconActionLink("icon-search gridAction", "", "Search", "Episode", new { EpisodeId = Model.EpisodeId }, null, new { title = "Search for episode" })
|
|
</td>
|
|
</tr>
|
|
|
|
<tr class='detail-row@(ViewData["AltRow"] == null || !(bool)ViewData["AltRow"] ? "" : " alt-row")'>
|
|
<td colspan="6">
|
|
<b>Overview: </b>@Model.Overview
|
|
</td>
|
|
</tr> |