comparison talosnames/templates/index.html @ 58:47d387086ea7

better layout
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 14 Aug 2012 20:25:57 -0700
parents 821e1dc63453
children 4171e8477cdb
comparison
equal deleted inserted replaced
57:253abacf6bdf 58:47d387086ea7
12 12
13 table, th, td { 13 table, th, td {
14 border: 1px solid black; 14 border: 1px solid black;
15 } 15 }
16 16
17 table {
18 border-collapse: collapse;
19 }
20
17 dt { 21 dt {
18 font-style: italic; 22 font-style: italic;
19 font-weight: 550; 23 font-weight: 550;
20 float: left; 24 float: left;
21 clear: left; 25 clear: left;
46 .fold { 50 .fold {
47 color: blue; 51 color: blue;
48 } 52 }
49 53
50 .disabled { 54 .disabled {
51 background-color: #AAA; 55 background-color: #BBB;
56 }
57
58 .talosconfig {
59 width: 100%;
60 }
61
62 #navigation {
63 list-style-type: none;
64 clear: right;
65 }
66
67 #navigation li {
68 float: left;
69 padding: 0.4em;
70 }
71
72 td.paint, td.chrome, td.tbpl {
73 text-align: center;
74 }
75
76 table.talosconfig td {
77 width: 50%;
78 }
79
80 .thfake {
81 width: 49.5%;
82 border: thin solid black;
83 float: left;
52 } 84 }
53 85
54 </style> 86 </style>
55 <script src="http://code.jquery.com/jquery-1.7.2.min.js"></script> 87 <script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
56
57 <script> 88 <script>
58 // In order to get anything working with Config.js 89 // In order to get anything working with Config.js
59 // We have to stub a bunch of stuff for no reason 90 // We have to stub a bunch of stuff for no reason
60 BuildbotDBUser = null; 91 BuildbotDBUser = null;
61 PushlogJSONParser = null; 92 PushlogJSONParser = null;
106 </head> 137 </head>
107 <body> 138 <body>
108 139
109 <ul id="navigation"> 140 <ul id="navigation">
110 <li><a href="/tbpl">TBPL view</a></li> 141 <li><a href="/tbpl">TBPL view</a></li>
111 <li>Show <a href="/?show=active">active</a></li> 142 <li>Show: <a href="/?show=active">active</a></li>
112 <li>Show <a href="/?show=disabled">disabled</a></li> 143 <li><a href="/?show=disabled">disabled</a></li>
113 <li>Show <a href="/">all</a></li> 144 <li><a href="/">all</a></li>
114 </ul> 145 </ul>
115 146
116 <table id="data"> 147 <table id="data">
117 148
118 <tr> 149 <tr>
119 <th class="buildbot">Buildbot Suite</th> 150 <th class="buildbot">Buildbot Suite</th>
120 <th class="command">Buildbot PerfConfigurator Command</th> 151 <th class="command">Buildbot PerfConfigurator Command</th>
121 <th class="tbpl">TBPL Name</th> 152 <th class="tbpl">TBPL Name</th>
122 <th class="paint">Paint</th> 153 <th class="paint">Paint</th>
123 <th class="chrome">Chrome</th> 154 <th class="chrome">Chrome</th>
124 <th class="tests">Talos Tests</th> 155 <th class="tests"><div class="thfake">Talos Config</div><div class="thfake">Graphserver Names</div></th>
125 </tr> 156 </tr>
126 {{for suite in suites}} 157 {{for suite in suites}}
127 {{if enabled[suite]}} 158 {{if enabled[suite]}}
128 <tr> 159 <tr>
129 {{else}} 160 {{else}}
140 <td class="tbpl">{{tbpl[suite]}}</td> 171 <td class="tbpl">{{tbpl[suite]}}</td>
141 <td class="paint">{{if suite in paint}}<span title="Paint">{{paint[suite]}}</span>{{endif}}</td> 172 <td class="paint">{{if suite in paint}}<span title="Paint">{{paint[suite]}}</span>{{endif}}</td>
142 <td class="chrome">{{if suite in chrome}}<span title="Chrome">{{chrome[suite]}}</span>{{endif}}</td> 173 <td class="chrome">{{if suite in chrome}}<span title="Chrome">{{chrome[suite]}}</span>{{endif}}</td>
143 <td class="tests"> 174 <td class="tests">
144 {{if tests.get(suite)}} 175 {{if tests.get(suite)}}
145 <table> 176 <table class="talosconfig">
146 <tr>
147 <th>Talos Config</th>
148 <th>Graphserver Name</th>
149 </tr>
150 177
151 {{for test in sorted(tests[suite].keys())}} 178 {{for test in sorted(tests[suite].keys())}}
152 <tr> 179 <tr>
153 <td> 180 <td>
154 <i>{{test_type[suite][test]}}</i> 181 <i>{{test_type[suite][test]}}</i>