- Choose where to move {{currentNode.name}} to in the tree structure below
+ Choose where to move
+ {{currentNode.name}}
+ to in the tree structure below
-
+
diff --git a/src/Umbraco.Web.UI.Client/src/views/dashboard/dashboard.tabs.controller.js b/src/Umbraco.Web.UI.Client/src/views/dashboard/dashboard.tabs.controller.js
index 53c0e0419db0..fb0c736f7b13 100644
--- a/src/Umbraco.Web.UI.Client/src/views/dashboard/dashboard.tabs.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/dashboard/dashboard.tabs.controller.js
@@ -14,9 +14,42 @@ function startUpVideosDashboardController($scope, xmlhelper, $log, $http) {
});
};
}
+
angular.module("umbraco").controller("Umbraco.Dashboard.StartupVideosController", startUpVideosDashboardController);
+function startUpDynamicContentController(dashboardResource, assetsService) {
+ var vm = this;
+ vm.loading = true;
+ vm.showDefault = false;
+
+ //proxy remote css through the local server
+ assetsService.loadCss( dashboardResource.getRemoteDashboardCssUrl("content") );
+ dashboardResource.getRemoteDashboardContent("content").then(
+ function (data) {
+
+ vm.loading = false;
+
+ //test if we have received valid data
+ //we capture it like this, so we avoid UI errors - which automatically triggers ui based on http response code
+ if (data && data.sections) {
+ vm.dashboard = data;
+ } else{
+ vm.showDefault = true;
+ }
+
+ },
+
+ function (exception) {
+ console.error(exception);
+ vm.loading = false;
+ vm.showDefault = true;
+ });
+}
+
+angular.module("umbraco").controller("Umbraco.Dashboard.StartUpDynamicContentController", startUpDynamicContentController);
+
+
function FormsController($scope, $route, $cookieStore, packageResource, localizationService) {
$scope.installForms = function(){
$scope.state = localizationService.localize("packager_installStateDownloading");
@@ -192,27 +225,43 @@ function startupLatestEditsController($scope) {
}
angular.module("umbraco").controller("Umbraco.Dashboard.StartupLatestEditsController", startupLatestEditsController);
-function MediaFolderBrowserDashboardController($rootScope, $scope, contentTypeResource) {
-
- //get the system media listview
- contentTypeResource.getPropertyTypeScaffold(-96)
- .then(function(dt) {
-
- $scope.fakeProperty = {
- alias: "contents",
- config: dt.config,
- description: "",
- editor: dt.editor,
- hideLabel: true,
- id: 1,
- label: "Contents:",
- validation: {
- mandatory: false,
- pattern: null
- },
- value: "",
- view: dt.view
- };
+function MediaFolderBrowserDashboardController($rootScope, $scope, $location, contentTypeResource, userService) {
+
+ var currentUser = {};
+
+ userService.getCurrentUser().then(function (user) {
+
+ currentUser = user;
+
+ // check if the user start node is the dashboard
+ if(currentUser.startMediaId === -1) {
+
+ //get the system media listview
+ contentTypeResource.getPropertyTypeScaffold(-96)
+ .then(function(dt) {
+
+ $scope.fakeProperty = {
+ alias: "contents",
+ config: dt.config,
+ description: "",
+ editor: dt.editor,
+ hideLabel: true,
+ id: 1,
+ label: "Contents:",
+ validation: {
+ mandatory: false,
+ pattern: null
+ },
+ value: "",
+ view: dt.view
+ };
+
+ });
+
+ } else {
+ // redirect to start node
+ $location.path("/media/media/edit/" + currentUser.startMediaId);
+ }
});
diff --git a/src/Umbraco.Web.UI.Client/src/views/dashboard/default/StartupDashboardIntro.html b/src/Umbraco.Web.UI.Client/src/views/dashboard/default/StartupDashboardIntro.html
index ff933a415ed9..37828983126f 100644
--- a/src/Umbraco.Web.UI.Client/src/views/dashboard/default/StartupDashboardIntro.html
+++ b/src/Umbraco.Web.UI.Client/src/views/dashboard/default/StartupDashboardIntro.html
@@ -1,44 +1,95 @@
-
-
-
Welcome to The Friendly CMS
-
Thank you for choosing Umbraco - we think this could be the beginning of something beautiful. While it may feel overwhelming at first, we've done a lot to make the learning curve as smooth and fast as possible:
-
-
-
-
-
-
-
-
-
- Umbraco.TV - Learn from the source!
-
-
-
- Umbraco.TV will help you go from zero to Umbraco
- hero at a pace that suits you. Our easy to follow
- online training videos will give you the fundamental
- knowledge to start building awesome Umbraco websites.
-
-
-
-
-
-
-
-
-
-
- Our Umbraco - The Friendliest Community
-
-
-
- Our Umbraco - the official community site is your one
- stop for everything Umbraco. Whether you need a
- question answered or looking for cool plugins, the
- worlds best community is just a click away.
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
Welcome to The Friendly CMS
+
+ Thank you for choosing Umbraco - we think this could be the beginning of something beautiful. While it may feel overwhelming at first, we've done a lot to make the learning curve as smooth and fast as possible.
+
+
Find out more:
+
+
+
+
+
+
+
+
+
+
+ Umbraco.TV - Learn from the source!
+
+
+
+ Umbraco.TV will help you go from zero to Umbraco
+ hero at a pace that suits you. Our easy to follow
+ online training videos will give you the fundamental
+ knowledge to start building awesome Umbraco websites.
+
+
+
+
+
+
+
+
+
+
+ Our Umbraco - The Friendliest Community
+
+
+
+ Our Umbraco - the official community site is your one
+ stop for everything Umbraco. Whether you need a
+ question answered or looking for cool plugins, the
+ worlds best community is just a click away.
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Umbraco.Web.UI.Client/src/views/dashboard/developer/redirecturls.html b/src/Umbraco.Web.UI.Client/src/views/dashboard/developer/redirecturls.html
index c63a44483957..f23b8f5df98b 100644
--- a/src/Umbraco.Web.UI.Client/src/views/dashboard/developer/redirecturls.html
+++ b/src/Umbraco.Web.UI.Client/src/views/dashboard/developer/redirecturls.html
@@ -77,7 +77,7 @@
{{redirectUrl.destinationUrl}}
-
- Choose where to move {{currentNode.name}} to in the tree structure below
-
+
Choose where to move
+
{{currentNode.name}}
+
to in the tree structure below
+
{{error.errorMsg}}
diff --git a/src/Umbraco.Web.UI.Client/src/views/packager/views/install-local.controller.js b/src/Umbraco.Web.UI.Client/src/views/packager/views/install-local.controller.js
index e29df0b9ae11..e34bc48ecdaf 100644
--- a/src/Umbraco.Web.UI.Client/src/views/packager/views/install-local.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/packager/views/install-local.controller.js
@@ -12,6 +12,7 @@
status: "",
progress:0
};
+ vm.installCompleted = false;
vm.zipFile = {
uploadStatus: "idle",
uploadProgress: 0,
@@ -34,6 +35,9 @@
file: file
}).progress(function (evt) {
+ // set view state to uploading
+ vm.state = 'uploading';
+
// calculate progress in percentage
var progressPercentage = parseInt(100.0 * evt.loaded / evt.total, 10);
@@ -134,10 +138,10 @@
localStorageService.set("packageInstallUri", "installed");
}
- //reload on next digest (after cookie)
- $timeout(function () {
- $window.location.reload(true);
- });
+ vm.installState.status = localizationService.localize("packager_installStateCompleted");
+ vm.installCompleted = true;
+
+
},
installError);
@@ -147,6 +151,13 @@
//This will return a rejection meaning that the promise change above will stop
return $q.reject();
}
+
+ vm.reloadPage = function() {
+ //reload on next digest (after cookie)
+ $timeout(function () {
+ $window.location.reload(true);
+ });
+ }
}
angular.module("umbraco").controller("Umbraco.Editors.Packages.InstallLocalController", PackagesInstallLocalController);
diff --git a/src/Umbraco.Web.UI.Client/src/views/packager/views/install-local.html b/src/Umbraco.Web.UI.Client/src/views/packager/views/install-local.html
index 07fb21d00b56..6bb7c6fb1409 100644
--- a/src/Umbraco.Web.UI.Client/src/views/packager/views/install-local.html
+++ b/src/Umbraco.Web.UI.Client/src/views/packager/views/install-local.html
@@ -37,10 +37,8 @@
- or click here to choose files
-
- {{vm.zipFile.serverErrorMessage}}
-
+
@@ -53,6 +51,41 @@