diff --git a/src/Umbraco.Web/HtmlHelperRenderExtensions.cs b/src/Umbraco.Web/HtmlHelperRenderExtensions.cs
index a64c00a03c..0e2a2a6450 100644
--- a/src/Umbraco.Web/HtmlHelperRenderExtensions.cs
+++ b/src/Umbraco.Web/HtmlHelperRenderExtensions.cs
@@ -1,1008 +1,1009 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Linq;
-using System.Text;
-using System.Web;
-using System.Web.Helpers;
-using System.Web.Mvc;
-using System.Web.Mvc.Html;
-using System.Web.Routing;
-using Umbraco.Core;
-using Umbraco.Core.Configuration;
-using Umbraco.Core.Dynamics;
-using Umbraco.Core.IO;
-using Umbraco.Core.Models;
-using Umbraco.Core.Profiling;
-using Umbraco.Web.Models;
-using Umbraco.Web.Mvc;
-using Constants = Umbraco.Core.Constants;
-using Member = umbraco.cms.businesslogic.member.Member;
-
-namespace Umbraco.Web
-{
- ///
- /// HtmlHelper extensions for use in templates
- ///
- public static class HtmlHelperRenderExtensions
- {
- ///
- /// Renders the markup for the profiler
- ///
- ///
- ///
- public static IHtmlString RenderProfiler(this HtmlHelper helper)
- {
- return new HtmlString(ProfilerResolver.Current.Profiler.Render());
- }
-
- ///
- /// Renders a partial view that is found in the specified area
- ///
- ///
- ///
- ///
- ///
- ///
- ///
- public static MvcHtmlString AreaPartial(this HtmlHelper helper, string partial, string area, object model = null, ViewDataDictionary viewData = null)
- {
- var originalArea = helper.ViewContext.RouteData.DataTokens["area"];
- helper.ViewContext.RouteData.DataTokens["area"] = area;
- var result = helper.Partial(partial, model, viewData);
- helper.ViewContext.RouteData.DataTokens["area"] = originalArea;
- return result;
- }
-
- ///
- /// Will render the preview badge when in preview mode which is not required ever unless the MVC page you are
- /// using does not inherit from UmbracoTemplatePage
- ///
- ///
- ///
- ///
- /// See: http://issues.umbraco.org/issue/U4-1614
- ///
- public static MvcHtmlString PreviewBadge(this HtmlHelper helper)
- {
- if (UmbracoContext.Current.InPreviewMode)
- {
- var htmlBadge =
- String.Format(UmbracoConfig.For.UmbracoSettings().Content.PreviewBadge,
- IOHelper.ResolveUrl(SystemDirectories.Umbraco),
- IOHelper.ResolveUrl(SystemDirectories.UmbracoClient),
- UmbracoContext.Current.HttpContext.Server.UrlEncode(UmbracoContext.Current.HttpContext.Request.Path));
- return new MvcHtmlString(htmlBadge);
- }
- return new MvcHtmlString("");
-
- }
-
- public static IHtmlString CachedPartial(
- this HtmlHelper htmlHelper,
- string partialViewName,
- object model,
- int cachedSeconds,
- bool cacheByPage = false,
- bool cacheByMember = false,
- ViewDataDictionary viewData = null,
- Func