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

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

Issue 2242543002: Make OAuth client id accessible to new ui w/o hardcoding (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: Address nits 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 Copyright 2016 The LUCI Authors. All rights reserved. 2 Copyright 2016 The LUCI Authors. All rights reserved.
3 Use of this source code is governed under the Apache License, Version 2.0 3 Use of this source code is governed under the Apache License, Version 2.0
4 that can be found in the LICENSE file. 4 that can be found in the LICENSE file.
5 5
6 This in an HTML Import-able file that contains the definition 6 This in an HTML Import-able file that contains the definition
7 of the following elements: 7 of the following elements:
8 8
9 <bot-list> 9 <bot-list>
10 10
11 bot-list creats a dynamic table for viewing swarming bots. Columns can be 11 bot-list creats a dynamic table for viewing swarming bots. Columns can be
12 dynamically filtered and it supports client-side filtering. 12 dynamically filtered and it supports client-side filtering.
13 13
14 This is a top-level element.
15
14 Properties: 16 Properties:
15 None. This is a top-level element. 17 client_id: String, will be set by server-side template evaluation.
16 18
17 Methods: 19 Methods:
18 None. 20 None.
19 21
20 Events: 22 Events:
21 None. 23 None.
22 --> 24 -->
23 25
24 <link rel="import" href="/res/imp/bower_components/iron-flex-layout/iron-flex-la yout-classes.html"> 26 <link rel="import" href="/res/imp/bower_components/iron-flex-layout/iron-flex-la yout-classes.html">
25 <link rel="import" href="/res/imp/bower_components/polymer/polymer.html"> 27 <link rel="import" href="/res/imp/bower_components/polymer/polymer.html">
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 right: 0; 71 right: 0;
70 top: 0.4em; 72 top: 0.4em;
71 } 73 }
72 .bot-list th > span { 74 .bot-list th > span {
73 /* Leave space for sort-toggle*/ 75 /* Leave space for sort-toggle*/
74 padding-right: 30px; 76 padding-right: 30px;
75 } 77 }
76 </style> 78 </style>
77 79
78 <swarming-app 80 <swarming-app
81 client_id="[[client_id]]"
79 auth_headers="{{_auth_headers}}" 82 auth_headers="{{_auth_headers}}"
80 signed_in="{{_signed_in}}" 83 signed_in="{{_signed_in}}"
81 84
82 busy="[[_busy]]" 85 busy="[[_busy]]"
83 name="Swarming Bot List"> 86 name="Swarming Bot List">
84 87
85 <h2 hidden$="[[_signed_in]]">You must sign in to see anything useful.</h2> 88 <h2 hidden$="[[_signed_in]]">You must sign in to see anything useful.</h2>
86 89
87 <div hidden$="[[_not(_signed_in)]]"> 90 <div hidden$="[[_not(_signed_in)]]">
88 91
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 return dir * swarming.naturalCompare(botACol, botBCol); 379 return dir * swarming.naturalCompare(botACol, botBCol);
377 }, 380 },
378 }; 381 };
379 382
380 Polymer({ 383 Polymer({
381 is: 'bot-list', 384 is: 'bot-list',
382 behaviors: [SwarmingBehaviors.BotListBehavior], 385 behaviors: [SwarmingBehaviors.BotListBehavior],
383 386
384 properties: { 387 properties: {
385 388
389 client_id: {
390 type: String,
391 },
392
386 _bots: { 393 _bots: {
387 type: Array, 394 type: Array,
388 }, 395 },
389 396
390 _columns: { 397 _columns: {
391 type: Array, 398 type: Array,
392 }, 399 },
393 400
394 _filter: { 401 _filter: {
395 type: Function, 402 type: Function,
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 if (data && data.task_id) { 540 if (data && data.task_id) {
534 return "/user/task/" + data.task_id; 541 return "/user/task/" + data.task_id;
535 } 542 }
536 return undefined; 543 return undefined;
537 } 544 }
538 545
539 }); 546 });
540 })(); 547 })();
541 </script> 548 </script>
542 </dom-module> 549 </dom-module>
OLDNEW
« no previous file with comments | « appengine/swarming/elements/index.html ('k') | appengine/swarming/elements/res/imp/common/swarming-app.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698