changeset 24:56d267d847e1

more progress
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 10 Jul 2012 21:36:24 -0700
parents 5f39ce13fbbc
children 6ec941f8704a
files talosnames/templates/index.html talosnames/web.py
diffstat 2 files changed, 33 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/talosnames/templates/index.html	Tue Jul 10 19:08:06 2012 -0700
+++ b/talosnames/templates/index.html	Tue Jul 10 21:36:24 2012 -0700
@@ -20,7 +20,37 @@
   <td>{{suite}}</td>
   <td><tt>{{repr(commands[suite])}}</tt></td>
   <td>{{tbpl[suite]}}</td>
-  <td><pre>{{pprint(tests[suite])}}</pre></td>
+  <td>
+    {{if tests.get(suite)}}
+    <table>
+      <tr>
+        <th>Talos Config</th>
+        <th>Graphserver Name</th>
+      </tr>
+
+      {{for test in sorted(tests[suite].keys())}}
+      <tr>
+        <td><b>{{test}}</b>
+          <dl>
+            {{for attr in sorted(tests.get(suite, {})[test].keys())}}
+            <dt>{{attr}}</dt>
+            <dd>{{tests[suite][test][attr]}}</dd>
+            {{endfor}}
+          </dl>
+        </td>
+        <td>
+          <dl>
+            {{for name, longname in api(test)}}
+            <dt>{{name}}</dt>
+            <dd>{{longname}}</dd>
+            {{endfor}}
+          </dl>
+        </td>
+      </tr>
+      {{endfor}}
+    </table>
+    {{endif}}
+  </td>
 </tr>
 {{endfor}}
 </table>
--- a/talosnames/web.py	Tue Jul 10 19:08:06 2012 -0700
+++ b/talosnames/web.py	Tue Jul 10 21:36:24 2012 -0700
@@ -41,7 +41,8 @@
                 'tbpl': dict([(suite, self.api.tbpl_name(suite))
                               for suite in suites]),
                 'tests': tests,
-                'pprint': pprint.pformat
+                'pprint': pprint.pformat,
+                'api': self.api
                 }
         return template.substitute(data)