# HG changeset patch # User Jeff Hammel # Date 1343074949 25200 # Node ID 1a9ec766f2b0ebadf9a15db1c6c0e4d73258f117 # Parent c6580ad2612f6d5cd094a410938339be5f4d61fb add a thing for tbpl short names diff -r c6580ad2612f -r 1a9ec766f2b0 talosnames/templates/index.html --- a/talosnames/templates/index.html Tue Jul 17 21:36:05 2012 -0700 +++ b/talosnames/templates/index.html Mon Jul 23 13:22:29 2012 -0700 @@ -31,10 +31,43 @@ text-align: center; } +.tbpl_initial { +font-weight: bold; +color: green; +} + +.true { +background-color: green; +} + +.false { +background-color: red; +} + + + + + + diff -r c6580ad2612f -r 1a9ec766f2b0 talosnames/web.py --- a/talosnames/web.py Tue Jul 17 21:36:05 2012 -0700 +++ b/talosnames/web.py Mon Jul 23 13:22:29 2012 -0700 @@ -18,7 +18,6 @@ def __init__(self, **kw): self.api = TalosNames() - self.template = file(template).read() # get data suites = sorted(self.api.suites.keys()) @@ -69,8 +68,9 @@ return response(environ, start_response) def render(self): - template = tempita.HTMLTemplate(self.template) - return template.substitute(self.data) + contents = file(template).read() + _template = tempita.HTMLTemplate(contents) + return _template.substitute(self.data) if __name__ == '__main__': from wsgiref import simple_server