 Chromium Code Reviews
 Chromium Code Reviews Issue 2337363003:
  Create boilerplate for task-page  (Closed) 
  Base URL: git@github.com:luci/luci-py@refactor-task
    
  
    Issue 2337363003:
  Create boilerplate for task-page  (Closed) 
  Base URL: git@github.com:luci/luci-py@refactor-task| Index: appengine/swarming/elements/res/imp/taskpage/task-page.html | 
| diff --git a/appengine/swarming/elements/res/imp/taskpage/task-page.html b/appengine/swarming/elements/res/imp/taskpage/task-page.html | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..5e71bea0d00bd20d0c66162da78a23f2186ba67e | 
| --- /dev/null | 
| +++ b/appengine/swarming/elements/res/imp/taskpage/task-page.html | 
| @@ -0,0 +1,97 @@ | 
| +<!-- | 
| + Copyright 2016 The LUCI Authors. All rights reserved. | 
| + Use of this source code is governed under the Apache License, Version 2.0 | 
| + that can be found in the LICENSE file. | 
| + | 
| + This in an HTML Import-able file that contains the definition | 
| + of the following elements: | 
| + | 
| + <task-page> | 
| + | 
| + task-page shows the request, results, stats, and standard output of a task. | 
| + | 
| + This is a top-level element. | 
| + | 
| + Properties: | 
| + task_id: String, Used in testing to specify a task_id | 
| + client_id: String, Oauth 2.0 client id. It will be set by server-side | 
| + template evaluation. | 
| + | 
| + Methods: | 
| + None. | 
| + | 
| + Events: | 
| + None. | 
| +--> | 
| + | 
| +<link rel="import" href="/res/imp/bower_components/polymer/polymer.html"> | 
| + | 
| +<link rel="import" href="/res/imp/common/common-behavior.html"> | 
| +<link rel="import" href="/res/imp/common/swarming-app.html"> | 
| +<link rel="import" href="/res/imp/common/url-param.html"> | 
| + | 
| +<link rel="import" href="task-page-data.html"> | 
| + | 
| + | 
| 
jcgregorio
2016/09/20 12:35:19
1 blank line here.
 
kjlubick
2016/09/20 13:27:33
Done.
 | 
| +<dom-module id="task-page"> | 
| + <template> | 
| + <style include="iron-flex iron-flex-alignment iron-positioning swarming-app-style"> | 
| + | 
| + </style> | 
| + | 
| + <url-param name="id" | 
| + value="{{task_id}}"> | 
| + </url-param> | 
| + | 
| + <swarming-app | 
| + client_id="[[client_id]]" | 
| + auth_headers="{{_auth_headers}}" | 
| + signed_in="{{_signed_in}}" | 
| + | 
| + busy="[[_busy]]" | 
| + name="Swarming Task Page"> | 
| + | 
| + <h2 hidden$="[[_signed_in]]">You must sign in to see anything useful.</h2> | 
| + | 
| + <div hidden$="[[_not(_signed_in)]]"> | 
| + | 
| + <task-page-data | 
| + auth_headers="[[_auth_headers]]" | 
| + task_id="[[task_id]]" | 
| + | 
| + busy="{{_busy}}" | 
| + request="{{_request}}" | 
| + result="{{_result}}" | 
| + stdout="{{_stdout}}"> | 
| + </task-page-data> | 
| + | 
| + <h1>Task Page Stub</h1> | 
| + </div> | 
| + | 
| + </swarming-app> | 
| + | 
| + </template> | 
| + <script> | 
| + (function(){ | 
| + | 
| + | 
| 
jcgregorio
2016/09/20 12:35:19
No blank lines here.
 
kjlubick
2016/09/20 13:27:32
Done.
 | 
| + Polymer({ | 
| + is: 'task-page', | 
| + | 
| + behaviors: [ | 
| + SwarmingBehaviors.CommonBehavior, | 
| + ], | 
| + | 
| + properties: { | 
| + task_id: { | 
| + type: String, | 
| + }, | 
| + client_id: { | 
| + type: String, | 
| + }, | 
| + | 
| 
jcgregorio
2016/09/20 12:35:19
No blank line here.
 
kjlubick
2016/09/20 13:27:33
Done.
 | 
| + }, | 
| + }); | 
| + })(); | 
| + </script> | 
| +</dom-module> |