Mercurial > mozilla > hg > talosnames
changeset 57:253abacf6bdf
print out buildbot suites
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 13 Aug 2012 22:40:45 -0700 |
parents | 6c54a5e40f63 |
children | 47d387086ea7 |
files | talosnames/templates/tbpl.html |
diffstat | 1 files changed, 21 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/talosnames/templates/tbpl.html Mon Aug 13 19:51:51 2012 -0700 +++ b/talosnames/templates/tbpl.html Mon Aug 13 22:40:45 2012 -0700 @@ -1,6 +1,6 @@ <html> <head> -<title>Talos names: TBPL</title> +<title>Talos names: TBPL View</title> <script src="http://code.jquery.com/jquery-1.7.2.min.js"></script> <script> @@ -21,12 +21,22 @@ $(document).ready(function() { +// map letter names to TBPL long names var reverse_mapping = {}; - for (var i in Config.testNames) { reverse_mapping[Config.testNames[i]] = i; } +// buildbot suites +var buildbot_suites = {}; +for (var suite in data.tbpl) { +var tbpl_name = data.tbpl[suite]; +if (buildbot_suites[tbpl_name] == undefined) { +buildbot_suites[tbpl_name] = []; +} +buildbot_suites[tbpl_name].push(suite); +} + $(".letter").each(function() { var text = $(this).text() if (text.length && reverse_mapping[text]) { @@ -42,6 +52,15 @@ var title = $(that).attr('title'); var html = '<h1>' + title + '</h1>'; +var bbsuite = buildbot_suites[title]; +if (bbsuite) { +html += '<div class="buildbot">'; +for (var suite in bbsuite) { +html += '<h2>' + bbsuite[suite] + '</h2>'; +} +html += '</div>'; + +} $("#content").html(html); });