(feat) major rework of the sidenav and top toolbars

This commit is contained in:
Ludovic Marcotte
2015-08-14 12:14:15 -04:00
parent d3d9a720dc
commit b72a9383a4
8 changed files with 164 additions and 270 deletions
+10 -1
View File
@@ -12,9 +12,18 @@
var settings = {
login: UserLogin || null,
identification: UserIdentification || null,
email: UserEmail || null,
language: UserLanguage || null,
folderURL: UserFolderURL || null,
isSuperUser: IsSuperUser || null
isSuperUser: IsSuperUser || null,
path: {
calendar: UserCalendarPath || null,
contacts: UserContactsPath || null,
mail: UserMailPath || null,
preferences: UserPreferencesPath || null,
administration: (IsSuperUser ? UserAdministrationPath : null),
logoff: UserLogoffPath || null
}
};
if (param)
return settings[param];
@@ -13,6 +13,7 @@
function navController($scope, $timeout, $interval, $http, $mdSidenav, $mdBottomSheet, $mdMedia, $log, sgConstant, sgSettings, Alarm) {
$scope.activeUser = sgSettings.activeUser();
$scope.baseURL = sgSettings.baseURL();
// Show current day in top bar
$scope.currentDay = window.currentDay;