From e42f0222dceafbac1ec6c19312045cc9cfe97ca2 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 7 Feb 2012 14:28:53 -0800 Subject: [PATCH] NzbDrone grids now have thead and tbody properly set. --- NzbDrone.Web/Views/Series/Index.cshtml | 53 ++++---- NzbDrone.Web/Views/Series/Season.cshtml | 54 ++++---- NzbDrone.Web/Views/Upcoming/Index.cshtml | 152 ++++++++++++----------- 3 files changed, 136 insertions(+), 123 deletions(-) diff --git a/NzbDrone.Web/Views/Series/Index.cshtml b/NzbDrone.Web/Views/Series/Index.cshtml index 4af95fc14..f8bc87878 100644 --- a/NzbDrone.Web/Views/Series/Index.cshtml +++ b/NzbDrone.Web/Views/Series/Index.cshtml @@ -80,8 +80,9 @@ } + - + @@ -89,34 +90,38 @@ - - - - - - + - @*Commands Column*@ - + + + + + + + + @*Commands Column*@ + - - - @for (int i = 0; i < Model.Count; i++) - { - var series = Model[i]; + + + + + @for (int i = 0; i < Model.Count; i++) + { + var series = Model[i]; - if (i % 2 == 0) - { - Html.RenderPartial("Series", series); - } + if (i % 2 == 0) + { + Html.RenderPartial("Series", series); + } - else - { - Html.RenderPartial("Series", series, new ViewDataDictionary { new KeyValuePair("AltRow", true) }); + else + { + Html.RenderPartial("Series", series, new ViewDataDictionary { new KeyValuePair("AltRow", true) }); + } } - } +
Status - TitleSeasonsQualityNext AiringEpisodes
+
StatusTitleSeasonsQualityNext AiringEpisodes -
diff --git a/NzbDrone.Web/Views/Series/Season.cshtml b/NzbDrone.Web/Views/Series/Season.cshtml index 2f1cd6fbb..5fe0e4e8b 100644 --- a/NzbDrone.Web/Views/Series/Season.cshtml +++ b/NzbDrone.Web/Views/Series/Season.cshtml @@ -8,37 +8,41 @@ - + - - - - - + + + + + + - @*Commands Column*@ - - - @for (int i = 0; i < Model.Episodes.Count; i++) - { - var episode = Model.Episodes[i]; - - if (i % 2 == 0) + @*Commands Column*@ + + + + + @for (int i = 0; i < Model.Episodes.Count; i++) { - Html.RenderPartial("Episode", episode); - } + var episode = Model.Episodes[i]; + + if (i % 2 == 0) + { + Html.RenderPartial("Episode", episode); + } - else - { - Html.RenderPartial("Episode", episode, new ViewDataDictionary { new KeyValuePair("AltRow", true) }); + else + { + Html.RenderPartial("Episode", episode, new ViewDataDictionary { new KeyValuePair("AltRow", true) }); + } } - } +
#TitleAir DateQuality
#TitleAir DateQuality - - Status - @Ajax.ImageActionLink("../../Content/Images/Search.png", new { Alt = "Search", Title = "Search for all episodes in this season", @class = "searchImage searchImageMaster" }, "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 = "renameImage renameImageMaster" }, "RenameSeason", "Episode", new { SeriesId = Model.SeriesId, SeasonNumber = Model.SeasonNumber }, null, null) -
+ + Status + @Ajax.ImageActionLink("../../Content/Images/Search.png", new { Alt = "Search", Title = "Search for all episodes in this season", @class = "searchImage searchImageMaster" }, "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 = "renameImage renameImageMaster" }, "RenameSeason", "Episode", new { SeriesId = Model.SeriesId, SeasonNumber = Model.SeasonNumber }, null, null) +
\ No newline at end of file diff --git a/NzbDrone.Web/Views/Upcoming/Index.cshtml b/NzbDrone.Web/Views/Upcoming/Index.cshtml index 48efe4ea9..a3cce8b0d 100644 --- a/NzbDrone.Web/Views/Upcoming/Index.cshtml +++ b/NzbDrone.Web/Views/Upcoming/Index.cshtml @@ -21,97 +21,101 @@ - - Series Title - Season # - Episode # - Episode Title - Air Time + + + Series Title + Season # + Episode # + Episode Title + Air Time - @*Commands/Status Column*@ - - Status - - - - - Yesterday - - + @*Commands/Status Column*@ + + Status + + + + + + + Yesterday + + - @for (int i = 0; i < Model.Yesterday.Count; i++) - { - var episode = Model.Yesterday[i]; + @for (int i = 0; i < Model.Yesterday.Count; i++) + { + var episode = Model.Yesterday[i]; - if (i % 2 == 0) - { - Html.RenderPartial("UpcomingEpisode", episode); - } + if (i % 2 == 0) + { + Html.RenderPartial("UpcomingEpisode", episode); + } - else - { - Html.RenderPartial("UpcomingEpisode", episode, new ViewDataDictionary { new KeyValuePair("AltRow", true) }); + else + { + Html.RenderPartial("UpcomingEpisode", episode, new ViewDataDictionary { new KeyValuePair("AltRow", true) }); + } } - } - - - Today - - + + + Today + + - @for (int i = 0; i < Model.Today.Count; i++) - { - var episode = Model.Today[i]; + @for (int i = 0; i < Model.Today.Count; i++) + { + var episode = Model.Today[i]; - if (i % 2 == 0) - { - Html.RenderPartial("UpcomingEpisode", episode); - } + if (i % 2 == 0) + { + Html.RenderPartial("UpcomingEpisode", episode); + } - else - { - Html.RenderPartial("UpcomingEpisode", episode, new ViewDataDictionary { new KeyValuePair("AltRow", true) }); + else + { + Html.RenderPartial("UpcomingEpisode", episode, new ViewDataDictionary { new KeyValuePair("AltRow", true) }); + } } - } - - - Tomorrow - + + + Tomorrow + - @for (int i = 0; i < Model.Tomorrow.Count; i++) - { - var episode = Model.Tomorrow[i]; + @for (int i = 0; i < Model.Tomorrow.Count; i++) + { + var episode = Model.Tomorrow[i]; - if (i % 2 == 0) - { - Html.RenderPartial("UpcomingEpisode", episode); - } + if (i % 2 == 0) + { + Html.RenderPartial("UpcomingEpisode", episode); + } - else - { - Html.RenderPartial("UpcomingEpisode", episode, new ViewDataDictionary { new KeyValuePair("AltRow", true) }); + else + { + Html.RenderPartial("UpcomingEpisode", episode, new ViewDataDictionary { new KeyValuePair("AltRow", true) }); + } } - } - - - Future Forecast - - + + + Future Forecast + + - @for (int i = 0; i < Model.Week.Count; i++) - { - var episode = Model.Week[i]; + @for (int i = 0; i < Model.Week.Count; i++) + { + var episode = Model.Week[i]; - if (i % 2 == 0) - { - Html.RenderPartial("UpcomingEpisode", episode); - } + if (i % 2 == 0) + { + Html.RenderPartial("UpcomingEpisode", episode); + } - else - { - Html.RenderPartial("UpcomingEpisode", episode, new ViewDataDictionary { new KeyValuePair("AltRow", true) }); + else + { + Html.RenderPartial("UpcomingEpisode", episode, new ViewDataDictionary { new KeyValuePair("AltRow", true) }); + } } - } + @section Scripts{