# HG changeset patch # User Jeff Hammel # Date 1344839248 25200 # Node ID 4e8c839dcdecff71fa7177869b0e0a130ded1cb7 # Parent cc0edf61ab214005f798259cb1695a191115d9f9 filter by disabled diff -r cc0edf61ab21 -r 4e8c839dcdec talosnames/templates/index.html --- a/talosnames/templates/index.html Sun Aug 12 23:10:16 2012 -0700 +++ b/talosnames/templates/index.html Sun Aug 12 23:27:28 2012 -0700 @@ -47,6 +47,10 @@ color: blue; } +.disabled { +background-color: #888; +} + @@ -103,8 +107,9 @@ + - +g @@ -112,8 +117,18 @@ {{for suite in suites}} +{{if enabled[suite]}} - +{{else}} + +{{endif}} + + diff -r cc0edf61ab21 -r 4e8c839dcdec talosnames/web.py --- a/talosnames/web.py Sun Aug 12 23:10:16 2012 -0700 +++ b/talosnames/web.py Sun Aug 12 23:27:28 2012 -0700 @@ -92,7 +92,11 @@ return response(environ, start_response) def render(self, request=None): + + # make a local copy of the data data = self.data.copy() + + # filter by TBPL letter if request and 'tbpl' in request.GET: tbplnames = [] for name in request.GET.getall('tbpl'): @@ -104,6 +108,7 @@ if value in tbplnames: suites.append(suite) data['suites'] = sorted(suites) + contents = file(template).read() _template = tempita.HTMLTemplate(contents) return _template.substitute(data)
Buildbot SuiteBuildbot Suite Buildbot PerfConfigurator Command TBPL Name PaintTalos Tests
{{suite}}
+ {{suite}} + {{if not enabled[suite]}} + (disabled) + {{endif}} + {{list2cmdline(commands[suite])}} {{tbpl[suite]}} {{paint.get(suite, '')}}