adds section to page title

This commit is contained in:
perploug
2013-11-18 11:48:58 +01:00
parent f758634a90
commit 4dbd1d3ca7
4 changed files with 16 additions and 2 deletions

View File

@@ -5,7 +5,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Umbraco</title>
<title ng-bind="locationTitle">Umbraco</title>
<link rel="stylesheet" href="assets/css/umbraco.css" />
</head>

View File

@@ -15,6 +15,13 @@ app.run(['userService', '$log', '$rootScope', '$location', 'navigationService',
firstRun = false;
userService.getCurrentUser({ broadcastEvent: true });
}
if(current.params.section){
$rootScope.locationTitle = current.params.section + " - " + $location.$$host;
}else{
$rootScope.locationTitle = "Umbraco - " + $location.$$host;
}
});
/** When the route change is rejected - based on checkAuth - we'll prevent the rejected route from executing including

View File

@@ -17,7 +17,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>Umbraco</title>
<title ng-bind="$root.locationTitle">Umbraco</title>
<link rel="stylesheet" href="assets/css/umbraco.css" />
<link rel="stylesheet" href="../umbraco_client/tree/treeicons.css" />

View File

@@ -15,6 +15,13 @@ app.run(['userService', '$log', '$rootScope', '$location', 'navigationService',
firstRun = false;
userService.getCurrentUser({ broadcastEvent: true });
}
if(current.params.section){
$rootScope.locationTitle = current.params.section + " - " + $location.$$host;
}else{
$rootScope.locationTitle = "Umbraco - " + $location.$$host;
}
});
/** When the route change is rejected - based on checkAuth - we'll prevent the rejected route from executing including