зеркало из https://github.com/mozilla/treeherder.git
Bug 1188508 - logviewer could use new getRevisionUrl filter
This commit is contained in:
Родитель
29881f85d8
Коммит
d5a3f25ca2
|
@ -203,9 +203,6 @@ logViewerApp.controller('LogviewerCtrl', [
|
|||
ThResultSetModel.getResultSet($scope.repoName, job.result_set_id).then(function(data){
|
||||
var revision = data.data.revision;
|
||||
$scope.logProperties.push({label: "Revision", value: revision});
|
||||
$scope.logRevisionFilterUrl = $scope.urlBasePath +
|
||||
"#/jobs?repo=" + $scope.repoName + "&revision=" +
|
||||
revision;
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@
|
|||
<tr ng-repeat="property in logProperties">
|
||||
<th ng-cloak>{{property.label}}</th>
|
||||
<td ng-if="property.label == 'Revision'" class="break-word">
|
||||
<a href="{{::logRevisionFilterUrl}}"
|
||||
<a href="{{::property.value|getRevisionUrl:repoName}}"
|
||||
title="Open resultset"
|
||||
class="repo-link"
|
||||
ng-cloak>{{property.value}}</a>
|
||||
|
@ -148,6 +148,9 @@
|
|||
<script src="js/models/resultset.js"></script>
|
||||
<script src="js/models/log_slice.js"></script>
|
||||
|
||||
<!-- Filter -->
|
||||
<script src="js/filters.js"></script>
|
||||
|
||||
<!-- Controllers -->
|
||||
<script src="js/controllers/logviewer.js"></script>
|
||||
<!-- endbuild -->
|
||||
|
|
Загрузка…
Ссылка в новой задаче