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
35 lines (34 loc) · 1.02 KB
/
buildbot-list.html
File metadata and controls
35 lines (34 loc) · 1.02 KB
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
<link rel="import" href="../components/polymer/polymer.html">
<link rel="import" href="polymer-buildbot.html">
<polymer-element name="buildbot-list" attributes="project platforms inactive">
<template>
<style>
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'],
projectChanged: function() {
this.generateBuilders();
},
generateBuilders: function() {
var builders = [];
this.platforms.forEach(function(platform) {
builders.push({
project: this.project,
platform: platform,
inactive: this.project == 'web-animations-js'
});
}.bind(this));
this.builders = builders;
}
});
</script>
</polymer-element>