2012-02-04 04:34:02 +00:00
@using NzbDrone.Web.Helpers
@model NzbDrone.Web.Models.SeasonModel
2012-02-05 03:27:29 +00:00
<h1>
2012-02-04 04:34:02 +00:00
@(Model.SeasonNumber == 0 ? "Specials" : "Season " + Model.SeasonNumber)
2012-02-05 03:27:29 +00:00
</h1>
2012-02-04 04:34:02 +00:00
<table class="seriesTable">
2012-02-04 07:36:52 +00:00
<colgroup>
2012-02-05 03:27:29 +00:00
<col style="width:40px"/>
2012-02-07 22:28:53 +00:00
<col style="width:auto"/>
2012-02-04 07:36:52 +00:00
<col style="width:100px" />
<col style="width:100px" />
<col style="width:110px" />
</colgroup>
2012-02-07 22:28:53 +00:00
<thead>
<tr>
<th>#</th>
<th>Title</th>
<th>Air Date</th>
<th>Quality</th>
2012-02-04 04:34:02 +00:00
2012-02-07 22:28:53 +00:00
@*Commands Column*@
<th>
2012-02-11 23:16:08 +00:00
<img src='../../Content/Images/@(Model.AnyWanted ? "notIgnored" : "ignored").png' class='ignoredEpisodesMaster ignoreEpisode ignoreSeason_@(Model.SeasonNumber) @(Model.AnyWanted ? "" : "ignored") gridImage' title='Click to toggle season ignore status' />
<img src='../../Content/Images/@(Model.CommonStatus).png' alt='Status' title='Season Status' class='gridImage' />
@Ajax.ImageActionLink("../../Content/Images/Search.png", new { Alt = "Search", Title = "Search for all episodes in this season", @class = "gridImage" }, "SearchSeason", "Episode", new { SeriesId = Model.SeriesId, SeasonNumber = Model.SeasonNumber }, null, null)
@Ajax.ImageActionLink("../../Content/Images/Rename.png", new { Alt = "Rename", Title = "Rename all episodes in this season", @class = "gridImage" }, "RenameSeason", "Episode", new { SeriesId = Model.SeriesId, SeasonNumber = Model.SeasonNumber }, null, null)
2012-02-07 22:28:53 +00:00
</th>
</tr>
</thead>
<tbody>
@for (int i = 0; i < Model.Episodes.Count; i++)
2012-02-07 03:48:26 +00:00
{
2012-02-07 22:28:53 +00:00
var episode = Model.Episodes[i];
if (i % 2 == 0)
{
Html.RenderPartial("Episode", episode);
}
2012-02-07 03:48:26 +00:00
2012-02-07 22:28:53 +00:00
else
{
Html.RenderPartial("Episode", episode, new ViewDataDictionary { new KeyValuePair<string, object>("AltRow", true) });
}
2012-02-07 03:48:26 +00:00
}
2012-02-07 22:28:53 +00:00
</tbody>
2012-02-04 04:34:02 +00:00
</table>