MVC miniprofile is no longer rendered in production

This commit is contained in:
kay.one 2011-12-08 20:04:06 -08:00
parent a681024db2
commit 25ecd45d9b
1 changed files with 29 additions and 28 deletions

View File

@ -4,12 +4,13 @@
@using NzbDrone.Web.Helpers @using NzbDrone.Web.Helpers
@section HeaderContent @section HeaderContent
{ {
@if (!EnviromentProvider.IsProduction)
{
@MvcMiniProfiler.MiniProfiler.RenderIncludes() @MvcMiniProfiler.MiniProfiler.RenderIncludes()
}
@RenderSection("HeaderContent", required: false) @RenderSection("HeaderContent", required: false)
} }
<div id="centered">
<body>
<div id="centered">
<div id="menu"> <div id="menu">
<ul> <ul>
@MvcHtmlString.Create(Html.CurrentActionLink("Series", "Index", "Series")) @MvcHtmlString.Create(Html.CurrentActionLink("Series", "Index", "Series"))
@ -31,10 +32,10 @@
<div id="footer"> <div id="footer">
@{Html.RenderAction("Footer", "Shared");} @{Html.RenderAction("Footer", "Shared");}
</div> </div>
</div> </div>
<div id="msgBox"> <div id="msgBox">
<span id="msgText">background notification</span> <span id="msgText">background notification</span>
</div> </div>
@section Scripts @section Scripts
{ {
@RenderSection("Scripts", required: false) @RenderSection("Scripts", required: false)