2013-12-11 08:51:07 +11:00
|
|
|
@using System.Web.Mvc
|
|
|
|
|
@using System.Web.Mvc.Html
|
|
|
|
|
@using Umbraco.Core
|
|
|
|
|
@using ClientDependency.Core
|
|
|
|
|
@using ClientDependency.Core.Mvc
|
|
|
|
|
@using Umbraco.Web
|
|
|
|
|
@using Umbraco.Web.Editors
|
|
|
|
|
@using umbraco
|
|
|
|
|
@inherits System.Web.Mvc.WebViewPage
|
|
|
|
|
@{
|
|
|
|
|
Layout = null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<base href="@GlobalSettings.Path.EnsureEndsWith('/')" />
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
|
|
|
|
|
<title>Umbraco</title>
|
|
|
|
|
<link rel="stylesheet" href="assets/css/umbraco.css" />
|
|
|
|
|
|
|
|
|
|
@*Because we're lazy loading angular js, the embedded cloak style will not be loaded initially, but we need it*@
|
|
|
|
|
<style>
|
|
|
|
|
[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
|
|
|
|
|
display: none !important;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
<body id="umbracoMainPageBody" ng-controller="Umbraco.AuthorizeUpgradeController">
|
|
|
|
|
|
|
|
|
|
<div data-backdrop="false" class="modal hide login-overlay" aria-hidden="false" style="display: block;">
|
|
|
|
|
|
|
|
|
|
<div ng-include="'views/common/dialogs/login.html'"></div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@*
|
|
|
|
|
These are the bare minimal server variables that are required for the application to start without being authenticated,
|
|
|
|
|
we will load the rest of the server vars after the user is authenticated.
|
|
|
|
|
*@
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
var Umbraco = {};
|
|
|
|
|
Umbraco.Sys = {};
|
|
|
|
|
Umbraco.Sys.ServerVariables = {
|
|
|
|
|
"umbracoUrls": {
|
2013-12-11 18:53:00 +11:00
|
|
|
"authenticationApiBaseUrl": "@(Url.GetUmbracoApiServiceBaseUrl<AuthenticationController>(controller => controller.PostLogin(null)))",
|
2013-12-11 08:51:07 +11:00
|
|
|
"serverVarsJs": '@Url.Action("ServerVariables", "BackOffice")'
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
@*And finally we can load in our angular app*@
|
2014-05-05 12:59:34 +02:00
|
|
|
<script type="text/javascript" src="lib/lazyload/lazyload.min.js"></script>
|
2013-12-11 08:51:07 +11:00
|
|
|
<script type="text/javascript" src="@Url.Action("Application", "BackOffice")"></script>
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
|