forked from Polymer/old-docs-site
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildbot-list.html
More file actions
39 lines (37 loc) · 1006 Bytes
/
buildbot-list.html
File metadata and controls
39 lines (37 loc) · 1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<link rel="import" href="polymer-buildbot.html">
<polymer-element name="buildbot-list" attributes="project platforms inactive">
<template>
<style>
@host {
:scope {
}
}
polymer-buildbot {
margin-right: 5px;
}
</style>
<template repeat="{{builder in builders}}">
<polymer-buildbot builder="{{builder}}" inactive="{{inactive || builder.inactive}}"></polymer-buildbot>
</template>
</template>
<script>
Polymer('buildbot-list', {
inactive: false,
platforms: ['Mac', 'Linux', 'Win'],
created: function() {
this.generateBuilders();
},
generateBuilders: function() {
var builders = [];
this.platforms.forEach(function(platform) {
builders.push({
project: this.project,
platform: platform,
//inactive: platform === 'Win'
});
}.bind(this));
this.builders = builders;
}
});
</script>
</polymer-element>