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

Side by Side Diff: appengine/swarming/ui/res/imp/tasklist/task-list.html

Issue 2511463003: Move error-toast up and make server details problems easy to see (Closed)
Patch Set: Created 4 years, 1 month 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 <task-list> 9 <task-list>
10 10
(...skipping 13 matching lines...) Expand all
24 None. 24 None.
25 --> 25 -->
26 26
27 <link rel="import" href="/res/imp/bower_components/iron-flex-layout/iron-flex-la yout-classes.html"> 27 <link rel="import" href="/res/imp/bower_components/iron-flex-layout/iron-flex-la yout-classes.html">
28 <link rel="import" href="/res/imp/bower_components/paper-button/paper-button.htm l"> 28 <link rel="import" href="/res/imp/bower_components/paper-button/paper-button.htm l">
29 <link rel="import" href="/res/imp/bower_components/paper-button/paper-button.htm l"> 29 <link rel="import" href="/res/imp/bower_components/paper-button/paper-button.htm l">
30 <link rel="import" href="/res/imp/bower_components/paper-dialog/paper-dialog.htm l"> 30 <link rel="import" href="/res/imp/bower_components/paper-dialog/paper-dialog.htm l">
31 <link rel="import" href="/res/imp/bower_components/polymer/polymer.html"> 31 <link rel="import" href="/res/imp/bower_components/polymer/polymer.html">
32 32
33 <link rel="import" href="/res/imp/common/dynamic-table-behavior.html"> 33 <link rel="import" href="/res/imp/common/dynamic-table-behavior.html">
34 <link rel="import" href="/res/imp/common/error-toast.html">
35 <link rel="import" href="/res/imp/common/pageable-data.html"> 34 <link rel="import" href="/res/imp/common/pageable-data.html">
36 <link rel="import" href="/res/imp/common/sort-toggle.html"> 35 <link rel="import" href="/res/imp/common/sort-toggle.html">
37 <link rel="import" href="/res/imp/common/swarming-app.html"> 36 <link rel="import" href="/res/imp/common/swarming-app.html">
38 <link rel="import" href="/res/imp/common/task-behavior.html"> 37 <link rel="import" href="/res/imp/common/task-behavior.html">
39 <link rel="import" href="/res/imp/common/url-param.html"> 38 <link rel="import" href="/res/imp/common/url-param.html">
40 39
41 <link rel="import" href="task-filters.html"> 40 <link rel="import" href="task-filters.html">
42 <link rel="import" href="task-list-data.html"> 41 <link rel="import" href="task-list-data.html">
43 42
44 <dom-module id="task-list"> 43 <dom-module id="task-list">
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 235
237 <paper-dialog id="prompt" modal on-iron-overlay-closed="_promptClosed"> 236 <paper-dialog id="prompt" modal on-iron-overlay-closed="_promptClosed">
238 <h2>Are you sure?</h2> 237 <h2>Are you sure?</h2>
239 <div>Are you sure you want to [[_dialogPrompt]]?</div> 238 <div>Are you sure you want to [[_dialogPrompt]]?</div>
240 <div class="buttons"> 239 <div class="buttons">
241 <paper-button dialog-dismiss autofocus>No</paper-button> 240 <paper-button dialog-dismiss autofocus>No</paper-button>
242 <paper-button dialog-confirm>Yes</paper-button> 241 <paper-button dialog-confirm>Yes</paper-button>
243 </div> 242 </div>
244 </paper-dialog> 243 </paper-dialog>
245 244
246 <error-toast></error-toast>
247
248 </template> 245 </template>
249 <script> 246 <script>
250 (function(){ 247 (function(){
251 var specialColumns = ["deduped_from", "name", "state", "bot", "source_revisi on"]; 248 var specialColumns = ["deduped_from", "name", "state", "bot", "source_revisi on"];
252 249
253 // Given a time attribute like "abandoned_ts", humanTime returns a function 250 // Given a time attribute like "abandoned_ts", humanTime returns a function
254 // that returns the human-friendly version of that attribute. The human 251 // that returns the human-friendly version of that attribute. The human
255 // friendly time was created in task-list-data. 252 // friendly time was created in task-list-data.
256 function humanTime(attr) { 253 function humanTime(attr) {
257 return function(task) { 254 return function(task) {
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 return task.tagMap[col]; 435 return task.tagMap[col];
439 }, 436 },
440 437
441 _taskClass: function(task) { 438 _taskClass: function(task) {
442 return this.stateClass(this._column("state", task)); 439 return this.stateClass(this._column("state", task));
443 } 440 }
444 }); 441 });
445 })(); 442 })();
446 </script> 443 </script>
447 </dom-module> 444 </dom-module>
OLDNEW
« no previous file with comments | « appengine/swarming/ui/res/imp/index/swarming-index-demo.html ('k') | appengine/swarming/ui/res/imp/taskpage/task-page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698