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