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