From 622fa5ea2de82eface8f1a87eafc9fe71f3fed98 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Wed, 16 Jan 2013 21:09:57 -0800 Subject: [PATCH] system page now uses bootstrap for layout. --- NzbDrone.Web/Content2/Menu.css | 12 ++++++++++-- NzbDrone.Web/Views/Settings/System.cshtml | 4 +--- NzbDrone.Web/Views/Shared/_Bootstrap.cshtml | 4 +++- NzbDrone.Web/Views/System/Index.cshtml | 7 +++++-- 4 files changed, 19 insertions(+), 8 deletions(-) diff --git a/NzbDrone.Web/Content2/Menu.css b/NzbDrone.Web/Content2/Menu.css index 0417dbebd..3a7d83110 100644 --- a/NzbDrone.Web/Content2/Menu.css +++ b/NzbDrone.Web/Content2/Menu.css @@ -6,7 +6,7 @@ #menu ul { - margin: 10 0 0 -30; + margin: 10px 0 0 -30px; padding: 5px 0 5px 0; list-style: none; line-height: normal; @@ -18,6 +18,8 @@ padding: 5px 15px 2px 10px; } + + #menu a { height: 26px; @@ -45,7 +47,7 @@ .sub-menu { padding-left: 5px; - margin-top: 0px; + margin: 10px 0 10px 0; } .sub-menu li @@ -75,3 +77,9 @@ margin-left: -10px; margin-bottom: 0px; } + + +#donate a { + background-color: #065EFE; + color: #191919; +} \ No newline at end of file diff --git a/NzbDrone.Web/Views/Settings/System.cshtml b/NzbDrone.Web/Views/Settings/System.cshtml index e83432281..632a03d97 100644 --- a/NzbDrone.Web/Views/Settings/System.cshtml +++ b/NzbDrone.Web/Views/Settings/System.cshtml @@ -1,12 +1,10 @@ @using NzbDrone.Web.Helpers @model NzbDrone.Web.Models.SystemSettingsModel - @{ - Layout = "~/Views/Shared/_Bootstrap.cshtml"; + Layout = "_SettingsLayout.cshtml"; } -
You must manually restart NzbDrone for these changes to take effect. (Automatic restart coming soon!)
diff --git a/NzbDrone.Web/Views/Shared/_Bootstrap.cshtml b/NzbDrone.Web/Views/Shared/_Bootstrap.cshtml index e67079973..5adfbbc15 100644 --- a/NzbDrone.Web/Views/Shared/_Bootstrap.cshtml +++ b/NzbDrone.Web/Views/Shared/_Bootstrap.cshtml @@ -59,7 +59,9 @@
- + @RenderBody()
diff --git a/NzbDrone.Web/Views/System/Index.cshtml b/NzbDrone.Web/Views/System/Index.cshtml index bf85b4f78..ae362a5da 100644 --- a/NzbDrone.Web/Views/System/Index.cshtml +++ b/NzbDrone.Web/Views/System/Index.cshtml @@ -1,8 +1,11 @@ @using NzbDrone.Web.Helpers @{ ViewBag.Title = "System"; -} + Layout = "~/Views/Shared/_Bootstrap.cshtml"; + + } +@* @section HeaderContent { @Html.IncludeCss("Settings.css") @@ -12,7 +15,7 @@ padding: 14px; } -} +}*@ @section ActionMenu{