Mercurial > mozilla > hg > talosnames
view talosnames/templates/tbpl.html @ 50:687d31c93111
add some navigation
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 13 Aug 2012 16:26:35 -0700 |
parents | 6ccef7749b49 |
children | 1d944da50135 |
line wrap: on
line source
<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> * { font-family: sanserif; } #header { font-weight: bold; width: 20em; margin-left: auto; margin-right: auto; text-align: center; } .letter { color: green; } </style> </head> <body> <ul id="navigation"> <li><a href="/">Buildbot view</a></li> </ul> <div id="header"> <span id="T">T</span> ( <span class="letter" id="c">c</span> <span class="letter" id="di">di</span> <span class="letter" id="dr">dr</span> <span class="letter" id="n">n</span> <span class="letter" id="o">o</span> <span class="letter" id="p">p</span> <span class="letter" id="s">s</span> <span class="letter" id="tp">tp</span> <span class="letter" id="x">x</span> ) </div><!-- header --> </body> </html>