changeset 49:6ccef7749b49

begin to hook up all the things
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 13 Aug 2012 16:12:59 -0700
parents bfea9feb5179
children 687d31c93111
files talosnames/templates/tbpl.html
diffstat 1 files changed, 27 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/talosnames/templates/tbpl.html	Mon Aug 13 15:50:18 2012 -0700
+++ b/talosnames/templates/tbpl.html	Mon Aug 13 16:12:59 2012 -0700
@@ -1,8 +1,35 @@
 <html>
 <head>
 <title>Talos names: TBPL</title>
+<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
+
+<script>
+// In order to get anything working with Config.js
+// We have to stub a bunch of stuff for no reason
+BuildbotDBUser = null;
+PushlogJSONParser = null;
+</script>
+<script src="http://hg.mozilla.org/users/mstange_themasta.com/tinderboxpushlog/raw-file/tip/js/Config.js"></script>
+
 <script>
 var data = {{json | html}};
+$(document).ready(function() {
+
+var reverse_mapping = {};
+
+for (var i in Config.testNames) {
+reverse_mapping[Config.testNames[i]] = i;
+}
+
+$(".letter").each(function() {
+var text = $(this).text()
+if (text.length && reverse_mapping[text]) {
+$(this).attr('title', reverse_mapping[text]);
+}
+
+});
+
+});
 </script>
 
 <style>
@@ -21,7 +48,6 @@
 .letter {
 color: green;
 }
-
 </style>
 
 </head>