From 25ecd45d9b995fcc40b5d56dc064b231b1a5cc72 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Thu, 8 Dec 2011 20:04:06 -0800 Subject: [PATCH] MVC miniprofile is no longer rendered in production --- NzbDrone.Web/Views/Shared/_Layout.cshtml | 57 ++++++++++++------------ 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/NzbDrone.Web/Views/Shared/_Layout.cshtml b/NzbDrone.Web/Views/Shared/_Layout.cshtml index f4d8ec5a6..c7217ff8f 100644 --- a/NzbDrone.Web/Views/Shared/_Layout.cshtml +++ b/NzbDrone.Web/Views/Shared/_Layout.cshtml @@ -4,41 +4,42 @@ @using NzbDrone.Web.Helpers @section HeaderContent { - @MvcMiniProfiler.MiniProfiler.RenderIncludes() + @if (!EnviromentProvider.IsProduction) + { + @MvcMiniProfiler.MiniProfiler.RenderIncludes() + } @RenderSection("HeaderContent", required: false) } - - -
- - -
- @RenderSection("ActionMenu", required: false) - @RenderBody() -
- +
+ + +
+ @RenderSection("ActionMenu", required: false) + @RenderBody()
-
- background notification + +
+
+ background notification +
@section Scripts { @RenderSection("Scripts", required: false) - @if (EnviromentProvider.IsProduction) + @if (EnviromentProvider.IsProduction) {