2015-02-06 10:46:55 -05:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
angular.module('markdownFormatWdiffApp')
|
2015-04-14 02:53:54 +00:00
|
|
|
.controller('NavbarCtrl', function ($scope, $location , /*Auth*/) {
|
2015-02-06 10:46:55 -05:00
|
|
|
$scope.menu = [{
|
|
|
|
'title': 'Home',
|
|
|
|
'link': '/'
|
|
|
|
}];
|
|
|
|
|
|
|
|
$scope.isCollapsed = true;
|
2015-04-14 02:53:54 +00:00
|
|
|
|
|
|
|
/*
|
2015-02-06 10:46:55 -05:00
|
|
|
$scope.isLoggedIn = Auth.isLoggedIn;
|
|
|
|
$scope.isAdmin = Auth.isAdmin;
|
|
|
|
$scope.getCurrentUser = Auth.getCurrentUser;
|
|
|
|
|
|
|
|
$scope.logout = function() {
|
|
|
|
Auth.logout();
|
|
|
|
$location.path('/login');
|
|
|
|
};
|
2015-04-14 02:53:54 +00:00
|
|
|
*/
|
2015-02-06 10:46:55 -05:00
|
|
|
|
|
|
|
$scope.isActive = function(route) {
|
|
|
|
return route === $location.path();
|
|
|
|
};
|
2015-04-14 02:53:54 +00:00
|
|
|
});
|