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

Side by Side Diff: appengine/swarming/ui/res/imp/botpage/bot-page.html

Issue 2768893002: Add device-summary to bot-page (Closed)
Patch Set: Address feedback Created 3 years, 9 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-page> 9 <bot-page>
10 10
(...skipping 25 matching lines...) Expand all
36 36
37 <link rel="import" href="/res/imp/common/pageable-data.html"> 37 <link rel="import" href="/res/imp/common/pageable-data.html">
38 <link rel="import" href="/res/imp/common/single-page-style.html"> 38 <link rel="import" href="/res/imp/common/single-page-style.html">
39 <link rel="import" href="/res/imp/common/swarming-app.html"> 39 <link rel="import" href="/res/imp/common/swarming-app.html">
40 <link rel="import" href="/res/imp/common/task-behavior.html"> 40 <link rel="import" href="/res/imp/common/task-behavior.html">
41 <link rel="import" href="/res/imp/common/url-param.html"> 41 <link rel="import" href="/res/imp/common/url-param.html">
42 42
43 <link rel="import" href="bot-page-data.html"> 43 <link rel="import" href="bot-page-data.html">
44 <link rel="import" href="bot-page-shared-behavior.html"> 44 <link rel="import" href="bot-page-shared-behavior.html">
45 <link rel="import" href="bot-page-summary.html"> 45 <link rel="import" href="bot-page-summary.html">
46 <link rel="import" href="device-summary.html">
46 47
47 48
48 <dom-module id="bot-page"> 49 <dom-module id="bot-page">
49 <template> 50 <template>
50 <style include="iron-flex iron-flex-alignment iron-positioning swarming-app- style single-page-style task-style"> 51 <style include="iron-flex iron-flex-alignment iron-positioning swarming-app- style single-page-style task-style">
51 .message { 52 .message {
52 white-space: pre-line; 53 white-space: pre-line;
53 font-family: monospace; 54 font-family: monospace;
54 } 55 }
55 56
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 </a> 250 </a>
250 </td> 251 </td>
251 </tr> 252 </tr>
252 <tr> 253 <tr>
253 <td>Machine Provider Lease Expires</td> 254 <td>Machine Provider Lease Expires</td>
254 <td colspan=2>[[_bot.human_lease_expiration_ts]]</td> 255 <td colspan=2>[[_bot.human_lease_expiration_ts]]</td>
255 </tr> 256 </tr>
256 </template> 257 </template>
257 </table> 258 </table>
258 259
260 <device-summary state="[[_bot.state]]"></device-summary>
261
259 <span class="title">State</span> 262 <span class="title">State</span>
260 263
261 <template is="dom-if" if="[[_not(_show_state)]]"> 264 <template is="dom-if" if="[[_not(_show_state)]]">
262 <button on-click="_toggleState"> 265 <button on-click="_toggleState">
263 <iron-icon icon="icons:add-circle-outline"></iron-icon> 266 <iron-icon icon="icons:add-circle-outline"></iron-icon>
264 </button> 267 </button>
265 </template> 268 </template>
266 269
267 <template is="dom-if" if="[[_show_state]]"> 270 <template is="dom-if" if="[[_show_state]]">
268 <button on-click="_toggleState"> 271 <button on-click="_toggleState">
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 }, 633 },
631 634
632 _toggleState: function() { 635 _toggleState: function() {
633 this.set("_show_state", !this._show_state); 636 this.set("_show_state", !this._show_state);
634 } 637 }
635 638
636 }); 639 });
637 })(); 640 })();
638 </script> 641 </script>
639 </dom-module> 642 </dom-module>
OLDNEW
« no previous file with comments | « appengine/swarming/ui/build/elements.html ('k') | appengine/swarming/ui/res/imp/botpage/device-summary.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698