From eddafaca933d8204f59a9c77ebeda6e36d011f4d Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Thu, 23 Feb 2012 11:16:11 -0800 Subject: [PATCH] Fixed: Settings tabs should load a lot faster. --- NzbDrone.Web/Content/IndexerSettings.css | 67 +++-- .../Views/Settings/DownloadClient.cshtml | 163 ++++++------ NzbDrone.Web/Views/Settings/Index.cshtml | 9 +- NzbDrone.Web/Views/Settings/Indexers.cshtml | 212 +++++++-------- NzbDrone.Web/Views/Settings/Misc.cshtml | 12 +- NzbDrone.Web/Views/Settings/Naming.cshtml | 44 ++-- .../Views/Settings/Notifications.cshtml | 245 +++++++++--------- NzbDrone.Web/Views/Settings/Quality.cshtml | 60 ++--- NzbDrone.Web/Views/Settings/System.cshtml | 8 +- NzbDrone.Web/Views/Shared/_Layout.cshtml | 2 + .../Views/Shared/_ReferenceLayout.cshtml | 2 - 11 files changed, 398 insertions(+), 426 deletions(-) diff --git a/NzbDrone.Web/Content/IndexerSettings.css b/NzbDrone.Web/Content/IndexerSettings.css index 393b26243..6a4adf284 100644 --- a/NzbDrone.Web/Content/IndexerSettings.css +++ b/NzbDrone.Web/Content/IndexerSettings.css @@ -3,28 +3,28 @@ margin-top: -10px; margin-left: 15px; } - + #addItem { text-decoration: none; - font-size:16px; + font-size: 16px; color: black; - font-weight:bold; + font-weight: bold; } - + .titleText { font-size: 1.5em; line-height: 1; margin-bottom: 1em; - display:inline; + display: inline; position: absolute; top: -1px; left: 2px; padding-bottom: 0px; - white-space:nowrap; + white-space: nowrap; } - + .providerHeader { min-height: 23px; @@ -36,7 +36,7 @@ float: left; width: 255px; margin: 2px; - border:solid 1px #CCCCCD; + border: solid 1px #CCCCCD; display: inline-block; overflow: auto; padding: 3px; @@ -51,19 +51,19 @@ font-weight: bold; width: 50px; } - + .providerOptions input, .providerOptions select { - font-size:12px; - padding:4px 2px; - border:solid 1px #aacfe4; - width:170px; + font-size: 12px; + padding: 4px 2px; + border: solid 1px #aacfe4; + width: 170px; margin-right: 0px; } - + .providerOptions select { - width:176px; + width: 176px; } .deleteProvider @@ -83,4 +83,39 @@ input[type="checkbox"] overflow: auto; margin-top: 5px; margin-bottom: 10px; -} \ No newline at end of file +} + +.indexerPanel +{ + overflow: auto; +} + +.retentionContainer +{ + padding-top: 20px; + overflow: hidden; +} + +.indexerStatusContainer +{ + margin-left: 12px; + margin-bottom: -4px; +} + +.indexerStatus +{ + padding: 6px 10px; + display: inline-block; + color: white; + margin: 3px; +} + +.enabled +{ + background-color: #065EFE; +} + +.disabled +{ + background-color: #616161; +} diff --git a/NzbDrone.Web/Views/Settings/DownloadClient.cshtml b/NzbDrone.Web/Views/Settings/DownloadClient.cshtml index b7493e2f1..120e6af72 100644 --- a/NzbDrone.Web/Views/Settings/DownloadClient.cshtml +++ b/NzbDrone.Web/Views/Settings/DownloadClient.cshtml @@ -1,33 +1,30 @@ @using NzbDrone.Web.Helpers; @model NzbDrone.Web.Models.DownloadClientSettingsModel -@{ Layout = "~/Views/Shared/_ReferenceLayout.cshtml"; } -@section HeaderContent{ - @Html.IncludeCss("Settings.css") - -} +@{ Layout = null; } +
@using (Html.BeginForm("SaveDownloadClient", "Settings", FormMethod.Post, new { id = "DownloadClientForm", name = "DownloadClientForm", @class = "settingsForm" })) { @@ -36,7 +33,6 @@ @Html.DescriptionFor(m => m.DownloadClient) @Html.DropDownListFor(m => m.DownloadClient, Model.DownloadClientSelectList, new { @class = "inputClass selectClass" }) - @@ -58,70 +54,67 @@
-@section Scripts{ - - -} + }); + diff --git a/NzbDrone.Web/Views/Settings/Index.cshtml b/NzbDrone.Web/Views/Settings/Index.cshtml index 78988463a..407a2d48a 100644 --- a/NzbDrone.Web/Views/Settings/Index.cshtml +++ b/NzbDrone.Web/Views/Settings/Index.cshtml @@ -1,11 +1,18 @@ @using NzbDrone.Web.Helpers @{ViewBag.Title = "Settings";} +@section HeaderContent +{ + @Html.IncludeCss("Settings.css") + @Html.IncludeCss("IndexerSettings.css") + @Html.IncludeCss("QualitySettings.css") +} +