
Patch for test-details page. Includes new page, directives, controller, and route for navigation. The detail page URL follows the same format as the timeline URL. Currently tabs are used to display detail information, but this may be replaced in a future revision. The page is navigated to from the timeline details panel via a button in the bottom-right corner. Change-Id: I003125a33f87aa7e4c8251756e1fe5f447abac56
36 lines
787 B
JavaScript
36 lines
787 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* @ngInject
|
|
*/
|
|
function OnConfig($stateProvider, $locationProvider, $urlRouterProvider) {
|
|
|
|
$stateProvider.state('home', {
|
|
url: '/{datasetId:int}',
|
|
params: { datasetId: 0 },
|
|
controller: 'HomeCtrl as home',
|
|
templateUrl: 'home.html',
|
|
title: 'Home'
|
|
});
|
|
|
|
$stateProvider.state('timeline', {
|
|
url: '/{datasetId:int}/timeline?test',
|
|
controller: 'TimelineCtrl as timeline',
|
|
templateUrl: 'timeline.html',
|
|
reloadOnSearch: false,
|
|
title: 'Timeline'
|
|
});
|
|
|
|
$stateProvider.state('testDetails', {
|
|
url: '/{datasetId:int}/test-details/{test}',
|
|
controller: 'TestDetailsCtrl as testDetails',
|
|
templateUrl: 'test-details.html',
|
|
title: 'Test Details'
|
|
});
|
|
|
|
$urlRouterProvider.otherwise('/');
|
|
|
|
}
|
|
|
|
module.exports = OnConfig;
|