unserver-unify
Version:
27 lines (26 loc) • 984 B
JavaScript
angular.module('bamboo.sharedrive', ['ui.router']).config(
['$stateProvider', '$urlRouterProvider',
function($stateProvider, $urlRouterProvider) {
$stateProvider.state('index.drive', {
url: "/drive",
views: {
"@index": {
templateProvider: function(deviceDetector, $templateFactory, loginService) {
var url = 'components/content/unloginhint.html';
if (loginService.user && deviceDetector.isMobile() && !deviceDetector.isTablet()) {
url = 'app/sharedrive/sharedrive.html';
} else if ( loginService.user ) {
url = 'app/sharedrive/sharedrive.html';
}
return $templateFactory.fromUrl(url);
},
//templateUrl: "app/news/list.html",
}
},
ncyBreadcrumb: {
label: "share drive"
// {{setting.totalCount}}
},
})
}
]);