Mercurial > mozilla > hg > talosnames
annotate talosnames/templates/index.html @ 34:b51b0d750086
color the paint and color cells
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 23 Jul 2012 13:55:17 -0700 |
parents | 15f17eeb1813 |
children | c945731f06d0 |
rev | line source |
---|---|
18 | 1 <html> |
2 <head> | |
20 | 3 <title>Talos Names</title> |
4 <style> | |
29 | 5 * { |
6 font-family: sans-serif; | |
7 } | |
8 | |
9 td.command { | |
10 font-family: monospace; | |
11 } | |
12 | |
20 | 13 table, th, td { |
14 border: 1px solid black; | |
15 } | |
25 | 16 dt { |
17 font-style: italic; | |
18 font-weight: 550; | |
19 float: left; | |
20 clear: left; | |
21 padding-right: 1em; | |
22 } | |
23 | |
24 dd { clear: right; } | |
25 | |
26 dt::after { content: ": "; } | |
27 | |
28 .header { | |
29 font-weight: bold; | |
30 align: center; | |
31 text-align: center; | |
32 } | |
33 | |
32
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
34 .tbpl_initial { |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
35 font-weight: bold; |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
36 color: green; |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
37 } |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
38 |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
39 .true { |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
40 background-color: green; |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
41 } |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
42 |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
43 .false { |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
44 background-color: red; |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
45 } |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
46 |
20 | 47 </style> |
25 | 48 <script src="http://code.jquery.com/jquery-1.7.2.min.js"></script> |
32
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
49 |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
50 <script> |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
51 // In order to get anything working with Config.js |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
52 // We have to stub a bunch of stuff for no reason |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
53 BuildbotDBUser = null; |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
54 PushlogJSONParser = null; |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
55 </script> |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
56 <script src="http://hg.mozilla.org/users/mstange_themasta.com/tinderboxpushlog/raw-file/tip/js/Config.js"></script> |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
57 |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
58 |
25 | 59 <script> |
60 $(document).ready(function() { | |
32
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
61 |
34
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
62 function mark_boolean(selector) { |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
63 $(selector).each(function() { |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
64 var text = $(this).text(); |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
65 if (text == 'True') { |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
66 $(this).addClass('true'); |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
67 } else if (text == 'False') { |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
68 $(this).addClass('false'); |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
69 } |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
70 }); |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
71 } |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
72 |
33 | 73 // color paint/chrome boxes appropriately |
34
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
74 mark_boolean('td.paint'); |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
75 mark_boolean('td.chrome'); |
33 | 76 |
77 // add TBPL initials to TBPL names from Config.js | |
32
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
78 $('td.tbpl').each(function() { |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
79 var text = $(this).text(); |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
80 if (text.length && Config.testNames[text]) { |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
81 $(this).html(text + '(<span class="tbpl_initial">' + Config.testNames[text] + '</span>)'); |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
82 } |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
83 }); |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
84 |
25 | 85 }); |
86 </script> | |
18 | 87 </head> |
88 <body> | |
25 | 89 <table id="data"> |
18 | 90 <tr> |
29 | 91 <th class="buildbot">Buildbot Suite</th> |
92 <th class="command">Buildbot Command</th> | |
93 <th class="tbpl">TBPL Name</th> | |
94 <th class="paint">Paint</th> | |
95 <th class="chrome">Chrome</th> | |
96 <th class="tests">Talos Tests</th> | |
18 | 97 </tr> |
21 | 98 {{for suite in suites}} |
99 <tr> | |
29 | 100 <td class="buildbot">{{suite}}</td> |
31
c6580ad2612f
better formatting of command
Jeff Hammel <jhammel@mozilla.com>
parents:
29
diff
changeset
|
101 <td class="command">{{list2cmdline(commands[suite])}}</tt></td> |
29 | 102 <td class="tbpl">{{tbpl[suite]}}</td> |
103 <td class="paint">{{paint.get(suite, '')}}</td> | |
104 <td class="chrome">{{chrome.get(suite, '')}}</td> | |
105 <td class="tests"> | |
24 | 106 {{if tests.get(suite)}} |
107 <table> | |
108 <tr> | |
109 <th>Talos Config</th> | |
110 <th>Graphserver Name</th> | |
111 </tr> | |
112 | |
113 {{for test in sorted(tests[suite].keys())}} | |
114 <tr> | |
25 | 115 <td><div class="header">{{test}}</div> |
24 | 116 <dl> |
117 {{for attr in sorted(tests.get(suite, {})[test].keys())}} | |
118 <dt>{{attr}}</dt> | |
119 <dd>{{tests[suite][test][attr]}}</dd> | |
120 {{endfor}} | |
121 </dl> | |
122 </td> | |
123 <td> | |
28 | 124 {{if graphserver[suite][test]}} |
24 | 125 <dl> |
26 | 126 {{for name, longname in graphserver[suite][test]}} |
24 | 127 <dt>{{name}}</dt> |
128 <dd>{{longname}}</dd> | |
129 {{endfor}} | |
130 </dl> | |
28 | 131 {{endif}} |
24 | 132 </td> |
133 </tr> | |
134 {{endfor}} | |
135 </table> | |
136 {{endif}} | |
137 </td> | |
21 | 138 </tr> |
139 {{endfor}} | |
18 | 140 </table> |
141 </body> | |
142 </html> |