OLD | NEW |
| (Empty) |
1 <!-- | |
2 Copyright 2014 The Chromium Authors. All rights reserved. | |
3 Use of this source code is governed by a BSD-style license that can be | |
4 found in the LICENSE file. | |
5 --> | |
6 | |
7 <link rel='import' href='ct-builder-repository.html'> | |
8 | |
9 <script> | |
10 | |
11 var CTBuilderBot; | |
12 | |
13 (function() { | |
14 | |
15 var BUILDER_URI = 'https://build.chromium.org/p/<group>/builders/<builder>'; | |
16 | |
17 CTBuilderBot = function(group, name, status, lastUpdate) { | |
18 this.group = group; | |
19 this.name = name; | |
20 this.status = status; | |
21 this.lastUpdate = lastUpdate; | |
22 this.repositories = []; | |
23 this.uri = BUILDER_URI.replace('<group>', this.group.name). | |
24 replace('<builder>', this.name); | |
25 }; | |
26 | |
27 CTBuilderBot.prototype.addRepository = function(repository) { | |
28 this.repositories.push(repository); | |
29 }; | |
30 | |
31 CTBuilderBot.prototype.sort = function() { | |
32 this.repositories.sort(CTBuilderRepository.sortFunction); | |
33 }; | |
34 | |
35 })(); | |
36 | |
37 </script> | |
OLD | NEW |