Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: appengine/swarming/elements/res/imp/botlist/bot-list-summary.html

Issue 2269643002: Extract shared filters and aliasing code (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: Address nit Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!-- 1 <!--
2 This in an HTML Import-able file that contains the definition 2 This in an HTML Import-able file that contains the definition
3 of the following elements: 3 of the following elements:
4 4
5 <bot-list-summary> 5 <bot-list-summary>
6 6
7 7
8 Usage: 8 Usage:
9 9
10 <bot-list-summary></bot-list-summary> 10 <bot-list-summary></bot-list-summary>
11 11
12 This element summarizes and displays the results of the current query. 12 This element summarizes and displays the results of the current query.
13 13
14 Properties: 14 Properties:
15 filtered_bots: Array<Object>, The bot list that is currently being shown 15 filtered_bots: Array<Object>, The bot list that is currently being shown
16 (after filtering). The alive, dead, etc bots in this will be counted up 16 (after filtering). The alive, dead, etc bots in this will be counted up
17 for the summary. See bot-list-data for a description of this data type. 17 for the summary. See bot-list-data for a description of this data type.
18 fleet: Object, counts of all bots in the fleet. Contains "alive", "busy", 18 fleet: Object, counts of all bots in the fleet. Contains "alive", "busy",
19 "idle", "dead", and "quarantined". 19 "idle", "dead", and "quarantined".
20 Methods: 20 Methods:
21 None. 21 None.
22 22
23 Events: 23 Events:
24 None. 24 None.
25 --> 25 -->
26 26
27 27
28 <link rel="import" href="/res/imp/common/swarming-app.html"> 28 <link rel="import" href="/res/imp/common/swarming-app.html">
29 29
30 <link rel="import" href="bot-list-shared.html"> 30 <link rel="import" href="bot-list-shared-behavior.html">
31 31
32 <dom-module id="bot-list-summary"> 32 <dom-module id="bot-list-summary">
33 <template> 33 <template>
34 <style include="swarming-app-style"> 34 <style include="swarming-app-style">
35 :host { 35 :host {
36 display: block; 36 display: block;
37 border-left: 1px solid black; 37 border-left: 1px solid black;
38 padding: 5px 5px; 38 padding: 5px 5px;
39 font-family: sans-serif; 39 font-family: sans-serif;
40 } 40 }
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 } else { 232 } else {
233 curr.alive++; 233 curr.alive++;
234 } 234 }
235 curr.all++; 235 curr.all++;
236 }.bind(this)); 236 }.bind(this));
237 this.set("_currently_showing", curr); 237 this.set("_currently_showing", curr);
238 } 238 }
239 }); 239 });
240 </script> 240 </script>
241 </dom-module> 241 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698