Mercurial > mozilla > hg > talosnames
annotate talosnames/templates/index.html @ 40:10945dedde84
get query string working for TBPL suites
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 24 Jul 2012 22:51:40 -0700 |
parents | ff2f0788e91b |
children | 4e8c839dcdec |
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 } | |
40
10945dedde84
get query string working for TBPL suites
Jeff Hammel <jhammel@mozilla.com>
parents:
39
diff
changeset
|
16 |
25 | 17 dt { |
18 font-style: italic; | |
19 font-weight: 550; | |
20 float: left; | |
21 clear: left; | |
22 padding-right: 1em; | |
23 } | |
24 | |
25 dd { clear: right; } | |
26 | |
27 dt::after { content: ": "; } | |
28 | |
29 .header { | |
30 font-weight: bold; | |
31 } | |
32 | |
32
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
33 .tbpl_initial { |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
34 font-weight: bold; |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
35 color: green; |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
36 } |
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 .true { |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
39 background-color: green; |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
40 } |
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 .false { |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
43 background-color: red; |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
44 } |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
45 |
36 | 46 .fold { |
47 color: blue; | |
48 } | |
49 | |
20 | 50 </style> |
25 | 51 <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
|
52 |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
53 <script> |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
54 // 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
|
55 // 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
|
56 BuildbotDBUser = null; |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
57 PushlogJSONParser = null; |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
58 </script> |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
59 <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
|
60 |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
61 |
25 | 62 <script> |
63 $(document).ready(function() { | |
32
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
64 |
36 | 65 // color paint/chrome boxes appropriately |
34
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
66 function mark_boolean(selector) { |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
67 $(selector).each(function() { |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
68 var text = $(this).text(); |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
69 if (text == 'True') { |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
70 $(this).addClass('true'); |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
71 } else if (text == 'False') { |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
72 $(this).addClass('false'); |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
73 } |
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 mark_boolean('td.paint'); |
b51b0d750086
color the paint and color cells
Jeff Hammel <jhammel@mozilla.com>
parents:
33
diff
changeset
|
77 mark_boolean('td.chrome'); |
33 | 78 |
79 // 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
|
80 $('td.tbpl').each(function() { |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
81 var text = $(this).text(); |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
82 if (text.length && Config.testNames[text]) { |
1a9ec766f2b0
add a thing for tbpl short names
Jeff Hammel <jhammel@mozilla.com>
parents:
31
diff
changeset
|
83 $(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
|
84 } |
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 |
36 | 87 // add a hide/unhide button |
88 $('div.testname').after('<a class="fold">[+]</a>'); | |
89 $('dl.testattributes').hide(); | |
90 $('.fold').click(function() { | |
91 var text = $(this).text(); | |
92 if (text == '[+]') { | |
93 $(this).next('.testattributes').show(); | |
94 $(this).text('[-]'); | |
95 } else if (text == '[-]') { | |
96 $(this).next('.testattributes').hide(); | |
97 $(this).text('[+]'); | |
98 } | |
99 }); | |
100 | |
25 | 101 }); |
102 </script> | |
18 | 103 </head> |
104 <body> | |
25 | 105 <table id="data"> |
18 | 106 <tr> |
29 | 107 <th class="buildbot">Buildbot Suite</th> |
39 | 108 <th class="command">Buildbot PerfConfigurator Command</th> |
29 | 109 <th class="tbpl">TBPL Name</th> |
110 <th class="paint">Paint</th> | |
111 <th class="chrome">Chrome</th> | |
112 <th class="tests">Talos Tests</th> | |
18 | 113 </tr> |
21 | 114 {{for suite in suites}} |
115 <tr> | |
39 | 116 <td class="buildbot"><a name="{{suite}}"></a><a class="anchor" href="#{{suite}}">{{suite}}</a></td> |
31
c6580ad2612f
better formatting of command
Jeff Hammel <jhammel@mozilla.com>
parents:
29
diff
changeset
|
117 <td class="command">{{list2cmdline(commands[suite])}}</tt></td> |
29 | 118 <td class="tbpl">{{tbpl[suite]}}</td> |
38
ef8590b55605
determine actually correct name extension
Jeff Hammel <jhammel@mozilla.com>
parents:
36
diff
changeset
|
119 <td class="paint"><span title="Paint">{{paint.get(suite, '')}}</span></td> |
ef8590b55605
determine actually correct name extension
Jeff Hammel <jhammel@mozilla.com>
parents:
36
diff
changeset
|
120 <td class="chrome"><span title="Chrome">{{chrome.get(suite, '')}}</span></td> |
29 | 121 <td class="tests"> |
24 | 122 {{if tests.get(suite)}} |
123 <table> | |
124 <tr> | |
125 <th>Talos Config</th> | |
126 <th>Graphserver Name</th> | |
127 </tr> | |
128 | |
129 {{for test in sorted(tests[suite].keys())}} | |
130 <tr> | |
36 | 131 <td> |
38
ef8590b55605
determine actually correct name extension
Jeff Hammel <jhammel@mozilla.com>
parents:
36
diff
changeset
|
132 <i>{{test_type[suite][test]}}</i> |
36 | 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> |