aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorMilosz Wasilewski <milosz.wasilewski@linaro.org>2014-07-31 17:35:26 +0100
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2014-07-31 17:35:26 +0100
commitb32e8a6df8df2417894a13d19b7a831a613e5f83 (patch)
tree20d9f8fe3ed292bf2cf1bac9e5e0daebc98acff2 /static
parentaf2802b8510de986fb2d1f8fc20cc0a1b9a9b3dd (diff)
testreporter: fixed links to manual runs
Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Diffstat (limited to 'static')
-rw-r--r--static/testreporter/main.js7
-rw-r--r--static/testreporter/public.js6
-rw-r--r--static/testreporter/templates/report.html7
3 files changed, 14 insertions, 6 deletions
diff --git a/static/testreporter/main.js b/static/testreporter/main.js
index d3cf79f..d5dcd5e 100644
--- a/static/testreporter/main.js
+++ b/static/testreporter/main.js
@@ -29,7 +29,12 @@ function Report($scope, $window, $routeParams, $http, $sce, Tag) {
$scope.tag = Tag.get({id:$routeParams.id}, function() {
$scope.description_markup = $sce.trustAsHtml($scope.tag.description_markup);
})
- $http.get('/testreporter/report/'+ $routeParams.id +'/').success(function(data) {
+
+ $scope.testRunUrl = function(testrun_id) {
+ $window.location.pathname = "/testmanualrunner/#/testrun/" + testrun_id + "/";
+ }
+
+ $http.get('/testreporter/report/'+ $routeParams.id +'/').success(function(data) {
$scope.data = data;
});
diff --git a/static/testreporter/public.js b/static/testreporter/public.js
index a8f32a3..42369e8 100644
--- a/static/testreporter/public.js
+++ b/static/testreporter/public.js
@@ -6,11 +6,15 @@ APP.config(['$routeProvider', function($routeProvider) {
});
}]);
-function Report($scope, $window, $routeParams, $http, $sce, Tag) {
+function Report($scope, $window, $routeParams, $http, $sce, $location, Tag) {
$scope.tag = Tag.get({id:$routeParams.id}, function() {
$scope.description_markup = $sce.trustAsHtml($scope.tag.description_markup);
})
$http.get('/testreporter/report/'+ $routeParams.id +'/').success(function(data) {
$scope.data = data;
});
+ $scope.testRunUrl = function(testrun_id) {
+ $window.location.pathname = "/testmanualrunner/#/testrun/" + testrun_id + "/";
+ }
+
}
diff --git a/static/testreporter/templates/report.html b/static/testreporter/templates/report.html
index 46206c1..d39a35c 100644
--- a/static/testreporter/templates/report.html
+++ b/static/testreporter/templates/report.html
@@ -1,6 +1,6 @@
<div class="row">
<div class="col-lg-12">
-
+ <h1> Bulshit! </h1>
<h2>Builds</h2>
<table class="table">
@@ -50,7 +50,7 @@
<hr/>
<h2>Manual Testruns</h2>
-
+some bulshit
<table class="table">
<thead>
<tr>
@@ -62,9 +62,8 @@
</thead>
<tbody>
<tr ng-repeat="testrun in data.testruns">
- <td><a ng-href='/testplanner/#//testrun.test_plan.id//'>//testrun.test_plan.name//</a></td>
+ <td><span ng-click="testRunUrl(testrun.id); " class="text-primary">//testrun.test_plan.name// (//testrun.id//)</span></td>
<td ng-repeat="name in testrun.result">// name[1] //</td>
- <td>//result.results.fail//</td>
</tr>
</tbody>
</table>