# HG changeset patch # User Jeff Hammel # Date 1343080255 25200 # Node ID c945731f06d089151ff7436c8e7d51e107309dd5 # Parent 88d280049e2f2b81c3ed6948770292085c1d6fbc better default value diff -r 88d280049e2f -r c945731f06d0 talosnames/templates/index.html --- a/talosnames/templates/index.html Mon Jul 23 13:57:14 2012 -0700 +++ b/talosnames/templates/index.html Mon Jul 23 14:50:55 2012 -0700 @@ -44,6 +44,10 @@ background-color: red; } +.fold { +color: blue; +} + @@ -59,6 +63,7 @@ @@ -112,8 +129,9 @@ {{for test in sorted(tests[suite].keys())}} -
{{test}}
-
+ +
{{test}}
+
{{for attr in sorted(tests.get(suite, {})[test].keys())}}
{{attr}}
{{tests[suite][test][attr]}}
diff -r 88d280049e2f -r c945731f06d0 talosnames/web.py --- a/talosnames/web.py Mon Jul 23 13:57:14 2012 -0700 +++ b/talosnames/web.py Mon Jul 23 14:50:55 2012 -0700 @@ -57,7 +57,13 @@ raise AssertionError paint[suite] = _paint chrome[suite] = _chrome - graphserver.setdefault(suite, {})[test] = [self.api.graphserver_name(test + extension) or ('','')] + + # get graphserver data + names = self.api.graphserver_name(test + extension) + if names: + graphserver.setdefault(suite, {})[test] = [names] + else: + graphserver.setdefault(suite, {})[test] = None self.data['graphserver'] = graphserver self.data['paint'] = paint self.data['chrome'] = chrome