2012-02-04 05:34:02 +01:00
@using NzbDrone.Web.Helpers
@model NzbDrone.Web.Models.SeasonModel
2012-02-05 04:27:29 +01:00
<h1>
2012-02-04 05:34:02 +01:00
@(Model.SeasonNumber == 0 ? "Specials" : "Season " + Model.SeasonNumber)
2012-02-05 04:27:29 +01:00
</h1>
2012-02-04 05:34:02 +01:00
2012-09-04 01:26:52 +02:00
<table class="seriesTable" data-season="@Model.SeasonNumber">
2012-02-04 08:36:52 +01:00
<colgroup>
2012-02-05 04:27:29 +01:00
<col style="width:40px"/>
2012-02-07 23:28:53 +01:00
<col style="width:auto"/>
2012-02-04 08:36:52 +01:00
<col style="width:100px" />
<col style="width:100px" />
2012-09-04 01:26:52 +02:00
<col style="width:110px" />
2012-02-04 08:36:52 +01:00
</colgroup>
2012-02-07 23:28:53 +01:00
<thead>
<tr>
<th>#</th>
<th>Title</th>
<th>Air Date</th>
<th>Quality</th>
2012-02-04 05:34:02 +01:00
2012-02-07 23:28:53 +01:00
@*Commands Column*@
<th>
2012-10-11 04:02:17 +02:00
<i class="icon-eye-open ignoredEpisodesMaster ignoreEpisode @(Model.Ignored ? " ignored" : " ") gridAction" title="Click to toggle season ignore status" data-season="@Model.SeasonNumber"></i>
2012-10-22 09:05:27 +02:00
@Ajax.IconActionLink("icon-search gridAction", "", "SearchSeason", "Episode", new { SeriesId = Model.SeriesId, seasonnumber = Model.SeasonNumber }, null, new { title = "Search for all episodes in this season" })
2012-10-11 04:02:17 +02:00
<i class="icon-tag changeQuality gridAction" title="Click to change the quality of all episode files in this season" data-changetype="season"></i>
2012-10-22 09:05:27 +02:00
@Ajax.IconActionLink("icon-pencil gridAction", "", "RenameSeason", "Episode", new { SeriesId = Model.SeriesId, seasonnumber = Model.SeasonNumber }, null, new { Title = "Rename all episodes in this season" })
2012-02-07 23:28:53 +01:00
</th>
</tr>
</thead>
<tbody>
@for (int i = 0; i < Model.Episodes.Count; i++)
2012-02-07 04:48:26 +01:00
{
2012-02-07 23:28:53 +01:00
var episode = Model.Episodes[i];
if (i % 2 == 0)
{
Html.RenderPartial("Episode", episode);
}
2012-02-07 04:48:26 +01:00
2012-02-07 23:28:53 +01:00
else
{
Html.RenderPartial("Episode", episode, new ViewDataDictionary { new KeyValuePair<string, object>("AltRow", true) });
}
2012-02-07 04:48:26 +01:00
}
2012-02-07 23:28:53 +01:00
</tbody>
2012-02-04 05:34:02 +01:00
</table>