Mercurial > mozilla > hg > talosnames
annotate talosnames/templates/index.html @ 36:c945731f06d0
better default value
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 23 Jul 2012 14:50:55 -0700 |
parents | b51b0d750086 |
children | ef8590b55605 |
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 |
36 | 47 .fold { |
48 color: blue; | |
49 } | |
50 | |
20 | 51 </style> |
25 | 52 <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
|
53 |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
54 <script> |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
55 // 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
|
56 // 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
|
57 BuildbotDBUser = null; |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
58 PushlogJSONParser = null; |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
59 </script> |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
60 <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
|
61 |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
62 |
25 | 63 <script> |
64 $(document).ready(function() { | |
32
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
65 |
36 | 66 // color paint/chrome boxes appropriately |
34
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
67 function mark_boolean(selector) { |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
68 $(selector).each(function() { |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
69 var text = $(this).text(); |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
70 if (text == 'True') { |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
71 $(this).addClass('true'); |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
72 } else if (text == 'False') { |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
73 $(this).addClass('false'); |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
74 } |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
75 }); |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
76 } |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
77 mark_boolean('td.paint'); |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
78 mark_boolean('td.chrome'); |
33 | 79 |
80 // 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
|
81 $('td.tbpl').each(function() { |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
82 var text = $(this).text(); |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
83 if (text.length && Config.testNames[text]) { |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
84 $(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
|
85 } |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
86 }); |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
87 |
36 | 88 // add a hide/unhide button |
89 $('div.testname').after('<a class="fold">[+]</a>'); | |
90 $('dl.testattributes').hide(); | |
91 $('.fold').click(function() { | |
92 var text = $(this).text(); | |
93 if (text == '[+]') { | |
94 $(this).next('.testattributes').show(); | |
95 $(this).text('[-]'); | |
96 } else if (text == '[-]') { | |
97 $(this).next('.testattributes').hide(); | |
98 $(this).text('[+]'); | |
99 } | |
100 }); | |
101 | |
25 | 102 }); |
103 </script> | |
18 | 104 </head> |
105 <body> | |
25 | 106 <table id="data"> |
18 | 107 <tr> |
29 | 108 <th class="buildbot">Buildbot Suite</th> |
109 <th class="command">Buildbot Command</th> | |
110 <th class="tbpl">TBPL Name</th> | |
111 <th class="paint">Paint</th> | |
112 <th class="chrome">Chrome</th> | |
113 <th class="tests">Talos Tests</th> | |
18 | 114 </tr> |
21 | 115 {{for suite in suites}} |
116 <tr> | |
29 | 117 <td class="buildbot">{{suite}}</td> |
31
c6580ad2612f
better formatting of command
Jeff Hammel <jhammel@mozilla.com>
parents:
29
diff
changeset
|
118 <td class="command">{{list2cmdline(commands[suite])}}</tt></td> |
29 | 119 <td class="tbpl">{{tbpl[suite]}}</td> |
120 <td class="paint">{{paint.get(suite, '')}}</td> | |
121 <td class="chrome">{{chrome.get(suite, '')}}</td> | |
122 <td class="tests"> | |
24 | 123 {{if tests.get(suite)}} |
124 <table> | |
125 <tr> | |
126 <th>Talos Config</th> | |
127 <th>Graphserver Name</th> | |
128 </tr> | |
129 | |
130 {{for test in sorted(tests[suite].keys())}} | |
131 <tr> | |
36 | 132 <td> |
133 <div class="header testname">{{test}}</div> | |
134 <dl class="testattributes"> | |
24 | 135 {{for attr in sorted(tests.get(suite, {})[test].keys())}} |
136 <dt>{{attr}}</dt> | |
137 <dd>{{tests[suite][test][attr]}}</dd> | |
138 {{endfor}} | |
139 </dl> | |
140 </td> | |
141 <td> | |
28 | 142 {{if graphserver[suite][test]}} |
24 | 143 <dl> |
26 | 144 {{for name, longname in graphserver[suite][test]}} |
24 | 145 <dt>{{name}}</dt> |
146 <dd>{{longname}}</dd> | |
147 {{endfor}} | |
148 </dl> | |
28 | 149 {{endif}} |
24 | 150 </td> |
151 </tr> | |
152 {{endfor}} | |
153 </table> | |
154 {{endif}} | |
155 </td> | |
21 | 156 </tr> |
157 {{endfor}} | |
18 | 158 </table> |
159 </body> | |
160 </html> |