[%
WRAPPER "staff/base.tt2";
- ctx.page_title = l("Home");
ctx.page_app = "egHome";
%]
[% BLOCK APP_JS %]
<!-- splash / login page app -->
<script src="[% ctx.media_prefix %]/js/ui/default/staff/app.js"></script>
+<script>
+angular.module('egCoreMod').run(['egStrings', function(s) {
+ s.PAGE_TITLE_SPLASH = "[% l('Home') %]";
+ s.PAGE_TITLE_LOGIN = "[% l('Staff Login') %]";
+ s.PAGE_TITLE_ABOUT = "[% l('About') %]";
+}])
+</script>
[% END %]
<div ng-view></div>
$scope.focusMe = true;
$scope.args = {};
$scope.workstations = [];
-
+
+ egCore.strings.setPageTitle(
+ egCore.strings['PAGE_TITLE_LOGIN']);
+
// if the user is already logged in, jump to splash page
if (egCore.auth.user()) $location.path('/');
/**
* Splash page dynamic content.
*/
-.controller('SplashCtrl', ['$scope', '$window', function($scope, $window) {
- console.log('SplashCtrl');
+.controller('SplashCtrl', ['$scope', '$window','egCore',
+ function($scope, $window,egCore) {
+
$scope.focus_search = true;
+
+ egCore.strings.setPageTitle(
+ egCore.strings['PAGE_TITLE_SPLASH']);
$scope.catalog_search = function($event) {
$scope.focus_search = true;
}
);
+ egCore.strings.setPageTitle(
+ egCore.strings['PAGE_TITLE_ABOUT']);
+
}])