@using System.Collections @using System.Net.Http @using System.Web.Mvc.Html @using Umbraco.Core @using ClientDependency.Core @using ClientDependency.Core.Mvc @using Microsoft.Owin.Security @using Newtonsoft.Json @using Newtonsoft.Json.Linq @using Umbraco.Core.IO @using Umbraco.Web @using Umbraco.Web.Editors @using umbraco @inherits System.Web.Mvc.WebViewPage @{ Layout = null; Html .RequiresCss("assets/css/umbraco.css", "Umbraco") .RequiresCss("lib/bootstrap-social/bootstrap-social.css", "Umbraco") .RequiresCss("lib/font-awesome/css/font-awesome.min.css", "Umbraco"); } Umbraco @Html.RenderCssHere( new BasicPath("Umbraco", IOHelper.ResolveUrl(SystemDirectories.Umbraco)), new BasicPath("UmbracoClient", IOHelper.ResolveUrl(SystemDirectories.UmbracoClient))) @*Because we're lazy loading angular js, the embedded cloak style will not be loaded initially, but we need it*@ @{ var externalLoginUrl = Url.Action("ExternalLogin", "BackOffice", new { area = ViewBag.UmbracoPath, //Custom redirect URL since we don't want to just redirect to the back office since this is for authing upgrades redirectUrl = Url.Action("AuthorizeUpgrade", "BackOffice") }); } @Html.BareMinimumServerVariablesScript(Url, externalLoginUrl) @*And finally we can load in our angular app*@