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

Side by Side Diff: appengine/swarming/elements/res/imp/taskpage/task-page.html

Issue 2337363003: Create boilerplate for task-page (Closed) Base URL: git@github.com:luci/luci-py@refactor-task
Patch Set: rebase 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 <task-page>
10
11 task-page shows the request, results, stats, and standard output of a task.
12
13 This is a top-level element.
14
15 Properties:
16 task_id: String, Used in testing to specify a task_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="task-page-data.html">
34
35
jcgregorio 2016/09/20 12:35:19 1 blank line here.
kjlubick 2016/09/20 13:27:33 Done.
36 <dom-module id="task-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="{{task_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 Task 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 <task-page-data
59 auth_headers="[[_auth_headers]]"
60 task_id="[[task_id]]"
61
62 busy="{{_busy}}"
63 request="{{_request}}"
64 result="{{_result}}"
65 stdout="{{_stdout}}">
66 </task-page-data>
67
68 <h1>Task Page Stub</h1>
69 </div>
70
71 </swarming-app>
72
73 </template>
74 <script>
75 (function(){
76
77
jcgregorio 2016/09/20 12:35:19 No blank lines here.
kjlubick 2016/09/20 13:27:32 Done.
78 Polymer({
79 is: 'task-page',
80
81 behaviors: [
82 SwarmingBehaviors.CommonBehavior,
83 ],
84
85 properties: {
86 task_id: {
87 type: String,
88 },
89 client_id: {
90 type: String,
91 },
92
jcgregorio 2016/09/20 12:35:19 No blank line here.
kjlubick 2016/09/20 13:27:33 Done.
93 },
94 });
95 })();
96 </script>
97 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698