| OLD | NEW | 
|---|
| (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 <dom-module id="task-page"> | 
|  | 36   <template> | 
|  | 37     <style include="iron-flex iron-flex-alignment iron-positioning swarming-app-
    style"> | 
|  | 38 | 
|  | 39     </style> | 
|  | 40 | 
|  | 41     <url-param name="id" | 
|  | 42       value="{{task_id}}"> | 
|  | 43     </url-param> | 
|  | 44 | 
|  | 45     <swarming-app | 
|  | 46       client_id="[[client_id]]" | 
|  | 47       auth_headers="{{_auth_headers}}" | 
|  | 48       signed_in="{{_signed_in}}" | 
|  | 49 | 
|  | 50       busy="[[_busy]]" | 
|  | 51       name="Swarming Task Page"> | 
|  | 52 | 
|  | 53       <h2 hidden$="[[_signed_in]]">You must sign in to see anything useful.</h2> | 
|  | 54 | 
|  | 55       <div hidden$="[[_not(_signed_in)]]"> | 
|  | 56 | 
|  | 57         <task-page-data | 
|  | 58           auth_headers="[[_auth_headers]]" | 
|  | 59           task_id="[[task_id]]" | 
|  | 60 | 
|  | 61           busy="{{_busy}}" | 
|  | 62           request="{{_request}}" | 
|  | 63           result="{{_result}}" | 
|  | 64           stdout="{{_stdout}}"> | 
|  | 65         </task-page-data> | 
|  | 66 | 
|  | 67         <h1>Task Page Stub</h1> | 
|  | 68       </div> | 
|  | 69 | 
|  | 70     </swarming-app> | 
|  | 71 | 
|  | 72   </template> | 
|  | 73   <script> | 
|  | 74   (function(){ | 
|  | 75     Polymer({ | 
|  | 76       is: 'task-page', | 
|  | 77 | 
|  | 78       behaviors: [ | 
|  | 79           SwarmingBehaviors.CommonBehavior, | 
|  | 80       ], | 
|  | 81 | 
|  | 82       properties: { | 
|  | 83         task_id: { | 
|  | 84           type: String, | 
|  | 85         }, | 
|  | 86         client_id: { | 
|  | 87           type: String, | 
|  | 88         }, | 
|  | 89       }, | 
|  | 90     }); | 
|  | 91   })(); | 
|  | 92   </script> | 
|  | 93 </dom-module> | 
| OLD | NEW | 
|---|