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

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

Issue 2283133002: Add bot-page stubs (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: Makefile should download demo json Created 4 years, 3 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
(Empty)
1 <!--
2 Copyright 2016 The LUCI Authors. All rights reserved.
3 Use of this source code is governed under the Apache License, Version 2.0
4 that can be found in the LICENSE file.
5
6 This in an HTML Import-able file that contains the definition
7 of the following elements:
8
9 <bot-page>
10
11 bot-page shows the tasks, events, and dimensions of a bot.
12
13 This is a top-level element.
14
15 Properties:
16 bot_id: String, Used in testing to specify a bot_id
17 client_id: String, Oauth 2.0 client id. It will be set by server-side
18 template evaluation.
19
20 Methods:
21 None.
22
23 Events:
24 None.
25 -->
26
27 <link rel="import" href="/res/imp/bower_components/polymer/polymer.html">
28
29 <link rel="import" href="/res/imp/common/common-behavior.html">
30 <link rel="import" href="/res/imp/common/swarming-app.html">
31 <link rel="import" href="/res/imp/common/url-param.html">
32
33 <link rel="import" href="bot-page-data.html">
34
35
36 <dom-module id="bot-page">
37 <template>
38 <style include="iron-flex iron-flex-alignment iron-positioning swarming-app- style">
39
40 </style>
41
42 <url-param name="id"
43 value="{{bot_id}}">
44 </url-param>
45
46 <swarming-app
47 client_id="[[client_id]]"
48 auth_headers="{{_auth_headers}}"
49 signed_in="{{_signed_in}}"
50
51 busy="[[_busy]]"
52 name="Swarming Bot Page">
53
54 <h2 hidden$="[[_signed_in]]">You must sign in to see anything useful.</h2>
55
56 <div hidden$="[[_not(_signed_in)]]">
57
58 <bot-page-data
59 auth_headers="[[_auth_headers]]"
60 bot_id="[[bot_id]]"
61
62 bot="{{_bot}}"
63 busy="{{_busy}}"
64 events="{{_events}}"
65 tasks="{{_tasks}}">
66 </bot-page-data>
67
68 <h1> Bot Page Stub </h1>
69 </div>
70
71 </swarming-app>
72
73 </template>
74 <script>
75 (function(){
76
77
78 Polymer({
79 is: 'bot-page',
80
81 behaviors: [
82 SwarmingBehaviors.CommonBehavior,
83 ],
84
85 properties: {
86 bot_id: {
87 type: String,
88 },
89 client_id: {
90 type: String,
91 },
92
93 },
94
95 });
96 })();
97 </script>
98 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698