controller: 'IndexCtrl',
controllerAs: 'indexCtrl'
})
- .when('/package/:id', {
- templateUrl: 'views/package.html',
- controller: 'EntityCtrl',
- controllerAs: 'entityCtrl'
- })
- .when('/group/:id', {
- templateUrl: 'views/group.html',
- controller: 'EntityCtrl',
- controllerAs: 'entityCtrl'
- })
- .when('/module/:id', {
- templateUrl: 'views/module.html',
- controller: 'EntityCtrl',
- controllerAs: 'entityCtrl'
- })
- .when('/class/:id', {
- templateUrl: 'views/class.html',
- controller: 'EntityCtrl',
- controllerAs: 'entityCtrl'
- })
- .when('/classdef/:id', {
- templateUrl: 'views/classdef.html',
- controller: 'EntityCtrl',
- controllerAs: 'entityCtrl'
- })
- .when('/property/:id', {
- templateUrl: 'views/property.html',
- controller: 'EntityCtrl',
- controllerAs: 'entityCtrl'
- })
- .when('/propdef/:id', {
- templateUrl: 'views/propdef.html',
+ .when('/doc/:id', {
+ templateUrl: 'views/doc.html',
controller: 'EntityCtrl',
controllerAs: 'entityCtrl'
})
--- /dev/null
+<div class='container-fluid'>
+ <div class='page-header'>
+ <h2><entity-signature mentity='mentity' /></h2>
+ <entity-namespace mentity='mentity' />
+ </div>
+ <div ng-switch='mentity.class_name'>
+ <div ng-switch-when='MPackage'>
+ <div ng-include src='"/views/package.html"' />
+ </div>
+ <div ng-switch-when='MGroup'>
+ <div ng-include src='"/views/group.html"' />
+ </div>
+ <div ng-switch-when='MModule'>
+ <div ng-include src='"/views/module.html"' />
+ </div>
+ <div ng-switch-when='MClass'>
+ <div ng-include src='"/views/class.html"' />
+ </div>
+ <div ng-switch-when='MClassDef'>
+ <div ng-include src='"/views/classdef.html"' />
+ </div>
+ <div ng-switch-when='MMethod' ng-switch-when='MAttribute' ng-switch-when='MVirtualTypeProp'>
+ <div ng-include src='"/views/property.html"' />
+ </div>
+ <div ng-switch-when='MMethodDef' ng-switch-when='MAttributeDef' ng-switch-when='MVirtualTypeDef'>
+ <div ng-include src='"/views/propdef.html"' />
+ </div>
+ </div>
+</div>