2012-02-07 01:22:17 +00:00
|
|
|
@using NzbDrone.Web.Helpers
|
|
|
|
@model NzbDrone.Web.Models.UpcomingEpisodesModel
|
|
|
|
|
2011-12-10 05:05:17 +00:00
|
|
|
@{ViewBag.Title = "Upcoming";}
|
2011-12-09 04:57:23 +00:00
|
|
|
@section HeaderContent
|
|
|
|
{
|
|
|
|
@Html.IncludeCss("Grid.css")
|
|
|
|
}
|
2011-04-21 06:18:28 +00:00
|
|
|
@section ActionMenu{
|
2011-12-01 05:25:01 +00:00
|
|
|
<ul class="sub-menu">
|
2011-08-06 02:04:35 +00:00
|
|
|
<li>@Ajax.ActionLink("Start RSS Sync", "RssSync", "Command", null, null)</li>
|
|
|
|
</ul>
|
2011-04-21 06:18:28 +00:00
|
|
|
}
|
2011-06-29 04:51:30 +00:00
|
|
|
|
2012-02-07 01:22:17 +00:00
|
|
|
<table class="seriesTable">
|
|
|
|
<colgroup>
|
|
|
|
<col/>
|
2012-02-07 04:16:40 +00:00
|
|
|
<col style="width:90px" />
|
2012-02-07 04:22:00 +00:00
|
|
|
<col style="width:300px" />
|
2012-02-07 01:22:17 +00:00
|
|
|
<col style="width:160px" />
|
|
|
|
<col style="width:100px" />
|
|
|
|
</colgroup>
|
2012-02-07 22:28:53 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Series Title</th>
|
2012-02-09 22:34:59 +00:00
|
|
|
<th>Episode</th>
|
2012-02-07 22:28:53 +00:00
|
|
|
<th>Episode Title</th>
|
|
|
|
<th>Air Time</th>
|
2012-02-07 01:22:17 +00:00
|
|
|
|
2012-02-07 22:28:53 +00:00
|
|
|
@*Commands/Status Column*@
|
|
|
|
<th>
|
|
|
|
Status
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr class="title-row">
|
|
|
|
<td colspan="6">
|
|
|
|
Yesterday
|
|
|
|
</td>
|
|
|
|
</tr>
|
2012-02-07 01:22:17 +00:00
|
|
|
|
2012-02-07 22:28:53 +00:00
|
|
|
@for (int i = 0; i < Model.Yesterday.Count; i++)
|
2012-02-07 01:22:17 +00:00
|
|
|
{
|
2012-02-07 22:28:53 +00:00
|
|
|
var episode = Model.Yesterday[i];
|
|
|
|
|
|
|
|
if (i % 2 == 0)
|
|
|
|
{
|
|
|
|
Html.RenderPartial("UpcomingEpisode", episode);
|
|
|
|
}
|
2012-01-30 06:14:46 +00:00
|
|
|
|
2012-02-07 22:28:53 +00:00
|
|
|
else
|
|
|
|
{
|
|
|
|
Html.RenderPartial("UpcomingEpisode", episode, new ViewDataDictionary { new KeyValuePair<string, object>("AltRow", true) });
|
|
|
|
}
|
2012-02-07 01:22:17 +00:00
|
|
|
}
|
2012-02-07 22:28:53 +00:00
|
|
|
<tr class="title-row">
|
|
|
|
<td colspan="6">
|
|
|
|
Today
|
|
|
|
</td>
|
|
|
|
</tr>
|
2012-02-07 01:22:17 +00:00
|
|
|
|
2012-02-07 22:28:53 +00:00
|
|
|
@for (int i = 0; i < Model.Today.Count; i++)
|
2012-02-07 01:22:17 +00:00
|
|
|
{
|
2012-02-07 22:28:53 +00:00
|
|
|
var episode = Model.Today[i];
|
|
|
|
|
|
|
|
if (i % 2 == 0)
|
|
|
|
{
|
|
|
|
Html.RenderPartial("UpcomingEpisode", episode);
|
|
|
|
}
|
2012-02-07 01:22:17 +00:00
|
|
|
|
2012-02-07 22:28:53 +00:00
|
|
|
else
|
|
|
|
{
|
|
|
|
Html.RenderPartial("UpcomingEpisode", episode, new ViewDataDictionary { new KeyValuePair<string, object>("AltRow", true) });
|
|
|
|
}
|
2012-02-07 01:22:17 +00:00
|
|
|
}
|
2012-02-07 22:28:53 +00:00
|
|
|
<tr class="title-row">
|
|
|
|
<td colspan="6">
|
|
|
|
Tomorrow
|
|
|
|
</td>
|
2012-02-07 01:22:17 +00:00
|
|
|
|
2012-02-07 22:28:53 +00:00
|
|
|
@for (int i = 0; i < Model.Tomorrow.Count; i++)
|
2012-02-07 01:22:17 +00:00
|
|
|
{
|
2012-02-07 22:28:53 +00:00
|
|
|
var episode = Model.Tomorrow[i];
|
|
|
|
|
|
|
|
if (i % 2 == 0)
|
|
|
|
{
|
|
|
|
Html.RenderPartial("UpcomingEpisode", episode);
|
|
|
|
}
|
2012-02-07 01:22:17 +00:00
|
|
|
|
2012-02-07 22:28:53 +00:00
|
|
|
else
|
|
|
|
{
|
|
|
|
Html.RenderPartial("UpcomingEpisode", episode, new ViewDataDictionary { new KeyValuePair<string, object>("AltRow", true) });
|
|
|
|
}
|
2012-02-07 01:22:17 +00:00
|
|
|
}
|
2012-02-07 22:28:53 +00:00
|
|
|
<tr class="title-row">
|
|
|
|
<td colspan="6">
|
|
|
|
Future Forecast
|
|
|
|
</td>
|
|
|
|
</tr>
|
2012-02-07 01:22:17 +00:00
|
|
|
|
2012-02-07 22:28:53 +00:00
|
|
|
@for (int i = 0; i < Model.Week.Count; i++)
|
2012-02-07 01:22:17 +00:00
|
|
|
{
|
2012-02-07 22:28:53 +00:00
|
|
|
var episode = Model.Week[i];
|
|
|
|
|
|
|
|
if (i % 2 == 0)
|
|
|
|
{
|
|
|
|
Html.RenderPartial("UpcomingEpisode", episode);
|
|
|
|
}
|
2012-02-07 01:22:17 +00:00
|
|
|
|
2012-02-07 22:28:53 +00:00
|
|
|
else
|
|
|
|
{
|
|
|
|
Html.RenderPartial("UpcomingEpisode", episode, new ViewDataDictionary { new KeyValuePair<string, object>("AltRow", true) });
|
|
|
|
}
|
2012-02-07 01:22:17 +00:00
|
|
|
}
|
2012-02-07 22:28:53 +00:00
|
|
|
</tbody>
|
2012-02-07 01:22:17 +00:00
|
|
|
</table>
|
|
|
|
|
|
|
|
@section Scripts{
|
|
|
|
|
2012-01-30 06:14:46 +00:00
|
|
|
}
|