MVC miniprofile is no longer rendered in production

pull/4/head
kay.one 13 years ago
parent a681024db2
commit 25ecd45d9b

@ -4,41 +4,42 @@
@using NzbDrone.Web.Helpers @using NzbDrone.Web.Helpers
@section HeaderContent @section HeaderContent
{ {
@MvcMiniProfiler.MiniProfiler.RenderIncludes() @if (!EnviromentProvider.IsProduction)
{
@MvcMiniProfiler.MiniProfiler.RenderIncludes()
}
@RenderSection("HeaderContent", required: false) @RenderSection("HeaderContent", required: false)
} }
<div id="centered">
<body> <div id="menu">
<div id="centered"> <ul>
<div id="menu"> @MvcHtmlString.Create(Html.CurrentActionLink("Series", "Index", "Series"))
<ul> @MvcHtmlString.Create(Html.CurrentActionLink("Upcoming", "Index", "Upcoming"))
@MvcHtmlString.Create(Html.CurrentActionLink("Series", "Index", "Series")) @MvcHtmlString.Create(Html.CurrentActionLink("History", "Index", "History"))
@MvcHtmlString.Create(Html.CurrentActionLink("Upcoming", "Index", "Upcoming")) @MvcHtmlString.Create(Html.CurrentActionLink("Missing", "Index", "Missing"))
@MvcHtmlString.Create(Html.CurrentActionLink("History", "Index", "History")) @MvcHtmlString.Create(Html.CurrentActionLink("Settings", "Index", "Settings"))
@MvcHtmlString.Create(Html.CurrentActionLink("Missing", "Index", "Missing")) @MvcHtmlString.Create(Html.CurrentActionLink("Logs", "Index", "Log"))
@MvcHtmlString.Create(Html.CurrentActionLink("Settings", "Index", "Settings")) </ul>
@MvcHtmlString.Create(Html.CurrentActionLink("Logs", "Index", "Log")) <input id="localSeriesLookup" type="text" />
</ul> </div>
<input id="localSeriesLookup" type="text" /> <div id="logo">
</div> @RenderSection("TitleContent", required: false)
<div id="logo"> </div>
@RenderSection("TitleContent", required: false) <div id="page">
</div> @RenderSection("ActionMenu", required: false)
<div id="page"> @RenderBody()
@RenderSection("ActionMenu", required: false)
@RenderBody()
</div>
<div id="footer">
@{Html.RenderAction("Footer", "Shared");}
</div>
</div> </div>
<div id="msgBox"> <div id="footer">
<span id="msgText">background notification</span> @{Html.RenderAction("Footer", "Shared");}
</div> </div>
</div>
<div id="msgBox">
<span id="msgText">background notification</span>
</div>
@section Scripts @section Scripts
{ {
@RenderSection("Scripts", required: false) @RenderSection("Scripts", required: false)
@if (EnviromentProvider.IsProduction) @if (EnviromentProvider.IsProduction)
{ {
<script type="text/javascript"> <script type="text/javascript">
var _gaq = _gaq || []; var _gaq = _gaq || [];

Loading…
Cancel
Save