adds section to page title
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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" />
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user