Select Git revision
wot-controllers.js
-
Benoit Lavenier authoredBenoit Lavenier authored
wot-controllers.js 26.50 KiB
angular.module('cesium.wot.controllers', ['cesium.services'])
.config(function($stateProvider) {
'ngInject';
$stateProvider
.state('app.wot_lookup', {
url: "/wot?q&type&hash",
views: {
'menuContent': {
templateUrl: "templates/wot/lookup.html",
controller: 'WotLookupCtrl'
}
}
})
.state('app.wot_identity', {
url: "/wot/:pubkey/:uid",
views: {
'menuContent': {
templateUrl: "templates/wot/view_identity.html",
controller: 'WotIdentityViewCtrl'
}
}
})
.state('app.wot_cert', {
url: "/wot/:pubkey/:uid/:type",
views: {
'menuContent': {
templateUrl: "templates/wot/view_certifications.html",
controller: 'WotCertificationsViewCtrl'
}
},
data: {
large: 'app.wot_cert_lg'
}
})
.state('app.wot_cert_lg', {
url: "/wot/cert/lg/:pubkey/:uid",
views: {
'menuContent': {
templateUrl: "templates/wot/view_certifications.html",
controller: 'WotCertificationsViewCtrl'
}
}
})
// wallet cert
.state('app.wallet_cert', {
url: "/wallet/cert/:type",
views: {
'menuContent': {
templateUrl: "templates/wot/view_certifications.html",
controller: 'WotCertificationsViewCtrl'
}
},
data: {
large: 'app.wallet_cert_lg'
}
})
.state('app.wallet_cert_lg', {
url: "/wallet/cert/lg",
views: {
'menuContent': {
templateUrl: "templates/wot/view_certifications.html",
controller: 'WotCertificationsViewCtrl'
}