зеркало из https://github.com/mozilla/treeherder.git
fixed merge conflicts
This commit is contained in:
Коммит
6086b3bdf6
|
@ -3,6 +3,7 @@
|
|||
<head>
|
||||
<title>Treeherder layout draft</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<!-- Bootstrap -->
|
||||
<link href="css/bootstrap.css" rel="stylesheet" media="screen">
|
||||
<link href="css/treeherder.css" rel="stylesheet" media="screen">
|
||||
|
@ -54,9 +55,9 @@
|
|||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="jobs_list span11">
|
||||
<div class="jobs_list span11" ng-cloak>
|
||||
<div class="alert alert-success">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
|
||||
<ng-view></ng-view>
|
||||
<ng-view ></ng-view>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -19,9 +19,9 @@ treeherder.controller('JobsCtrl',
|
|||
$scope.push_sample = data;
|
||||
});
|
||||
|
||||
// this is just to emulate the platform results
|
||||
// the real objects will be something like this
|
||||
/*
|
||||
this is just to emulate the platform results
|
||||
the real objects will be something like this
|
||||
{
|
||||
"platform": platform_name,
|
||||
jobs:[
|
||||
|
@ -36,9 +36,22 @@ treeherder.controller('JobsCtrl',
|
|||
|
||||
}
|
||||
*/
|
||||
$scope.platforms=["Ubuntu pto", "Ubuntu debug", "Win 7", "win XP", "OSX 10.7", "Android", "Fedora"]
|
||||
$scope.platforms=["Ubuntu pto", "Ubuntu debug", "Win 7", "win XP", "OSX 10.7", "Android", "Fedora"];
|
||||
|
||||
/*manage the collapsed push sections*/
|
||||
$scope.uncollapsed=[]
|
||||
|
||||
$scope.isCollapsed = function(x){
|
||||
return $scope.uncollapsed.indexOf(x) < 0
|
||||
}
|
||||
|
||||
$scope.toggleCollapse = function(x){
|
||||
if ($scope.isCollapsed(x)){
|
||||
$scope.uncollapsed.push(x);
|
||||
}else{
|
||||
delete $scope.uncollapsed[$scope.uncollapsed.indexOf(x)];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<div ng-repeat="x in [1,2,3,4,5,6,7,8]" class="row-fluid">
|
||||
<a class="btn btn-info" data-toggle="collapse" data-target="#push{{x}}">
|
||||
<a class="btn btn-info" ng-click="toggleCollapse(x)">
|
||||
{{push_sample.email}} - {{push_sample.timestamp}}
|
||||
</a>
|
||||
<ul id="push{{x}}" class="unstyled collapse">
|
||||
<ul class="unstyled" collapse="isCollapsed(x)">
|
||||
<li ng-repeat="revision in push_sample.revisions">
|
||||
<h5>{{revision.name}} - <a class="btn">{{revision.revision}}</a> <a class="btn">{{revision.bug_id}}</a></h5>
|
||||
<small>{{revision.message}}</small>
|
||||
|
|
Загрузка…
Ссылка в новой задаче