OLD | NEW |
1 <!-- The <trybots-list-sk> custom element declaration. | 1 <!-- The <trybots-list-sk> custom element declaration. |
2 | 2 |
3 Renders a list of Rietveld issues that have trybot runs associated with them. | 3 Renders a list of Rietveld issues that have trybot runs associated with them. |
4 | 4 |
5 Attributes: None | 5 Attributes: None |
6 | 6 |
7 Events: None | 7 Events: None |
8 | 8 |
9 Methods: None | 9 Methods: None |
10 | 10 |
11 --> | 11 --> |
12 <polymer-element name="trybots-list-sk"> | 12 <polymer-element name="trybots-list-sk"> |
13 <template> | 13 <template> |
14 <style type="text/css" media="screen"> | 14 <style type="text/css" media="screen"> |
15 .nameHeader, | 15 .nameHeader, |
16 .issueHeader, | 16 .issueHeader, |
17 .dateTimeHeader, | 17 .dateTimeHeader, |
18 .subjectHeader { | 18 .subjectHeader, |
| 19 .patchsetHeader { |
19 font-weight: bold; | 20 font-weight: bold; |
20 } | 21 } |
21 | 22 |
22 .nameHeader, | 23 .nameHeader, |
23 .nameValue { | 24 .nameValue { |
24 width: 8em; | 25 width: 8em; |
25 } | 26 } |
26 | 27 |
27 .dateTimeHeader, | 28 .dateTimeHeader, |
28 .dateTimeValue { | 29 .dateTimeValue { |
29 width: 12em; | 30 width: 12em; |
30 } | 31 } |
31 | 32 |
32 .subjectHeader, | 33 .subjectHeader, |
33 .subjectValue { | 34 .subjectValue { |
34 width: 40em; | 35 min-width: 15em; |
| 36 max-width: 35em; |
35 } | 37 } |
36 | 38 |
37 .issueHeader, | 39 .issueHeader, |
38 .issueValue { | 40 .issueValue { |
39 width: 6em; | 41 width: 6em; |
40 } | 42 } |
41 | 43 |
| 44 .patchsetHeader, |
| 45 .patchsetValue { |
| 46 width: 7em; |
| 47 } |
| 48 |
42 .headerContainer { | 49 .headerContainer { |
43 padding-top: 2em; | 50 padding-top: 2em; |
44 } | 51 } |
| 52 |
| 53 tr.rowEntry:hover td {background:#DDDDDD} |
45 </style> | 54 </style> |
46 <paging-sk pagination="{{pagination}}" on-pagechange="{{pageChangedHandler}}
"></paging-sk> | 55 <paging-sk pagination="{{pagination}}" on-pagechange="{{pageChangedHandler}}
"></paging-sk> |
47 <table class="headerContainer"> | 56 <table class="headerContainer"> |
48 <thead> | 57 <thead> |
49 <tr> | 58 <tr> |
50 <td class="issueHeader">Issue</td> | 59 <td class="issueHeader">Issue</td> |
| 60 <td class="patchsetHeader">Results<br>Up To</td> |
51 <td class="nameHeader">Owner</td> | 61 <td class="nameHeader">Owner</td> |
52 <td class="dateTimeHeader">Updated</td> | 62 <td class="dateTimeHeader">Updated</td> |
53 <td class="subjectHeader">Subject</td> | 63 <td class="subjectHeader">Subject</td> |
54 </tr> | 64 </tr> |
55 <tr template repeat="{{entry in trybotEntries}}"> | 65 <tr template repeat="{{entry in trybotEntries}}" class="rowEntry"> |
56 <td class="issueValue"><a href="{{entry.url}}" target="_blank">{{ent
ry.id}}</a></td> | 66 <td class="issueValue"><a href="{{entry.url}}" target="_blank" title
="See codereview in a new window">{{entry.id}}</a></td> |
| 67 <td class="patchsetValue"><a href="/search2?issue={{entry.id}}&unt=t
rue&query={{ page.query | queryStr }}&master=false" title="Results up to Patchse
t {{entry.currentPatchset}}">Patchset {{entry.currentPatchset}}</a></td> |
57 <td class="nameValue">{{entry.owner}}</td> | 68 <td class="nameValue">{{entry.owner}}</td> |
58 <td class="dateTimeValue">{{entry.updated | _toLocalDate}}</td> | 69 <td class="dateTimeValue">{{entry.updated | _toLocalDate}}</td> |
59 <td class="subjectValue"><a href="/search2?issue={{entry.id}}&unt=tr
ue&query={{ page.query | queryStr }}&master=false">{{entry.subject}}</a></td> | 70 <td class="subjectValue">{{entry.subject}}</td> |
60 </tr> | 71 </tr> |
61 </table> | 72 </table> |
62 <error-toast-sk></error-toast-sk> | 73 <error-toast-sk></error-toast-sk> |
63 </template> | 74 </template> |
64 <script> | 75 <script> |
65 Polymer({ | 76 Polymer({ |
66 ready: function() { | 77 ready: function() { |
67 this.pagination = null; | 78 this.pagination = null; |
68 this.page = { | 79 this.page = { |
69 state: {}, | 80 state: {}, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 }.bind(this)).catch(sk.errorMessage); | 115 }.bind(this)).catch(sk.errorMessage); |
105 }, | 116 }, |
106 | 117 |
107 _toLocalDate: function(timeStampSec) { | 118 _toLocalDate: function(timeStampSec) { |
108 return (new Date(timeStampSec * 1000)).toLocaleString(); | 119 return (new Date(timeStampSec * 1000)).toLocaleString(); |
109 } | 120 } |
110 }); | 121 }); |
111 | 122 |
112 </script> | 123 </script> |
113 </polymer-element> | 124 </polymer-element> |
OLD | NEW |