Andy Doan | 35ee9dc | 2012-05-11 01:10:12 -0500 | [diff] [blame^] | 1 | <html> |
| 2 | <head> |
| 3 | <title>${title}</title> |
| 4 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| 5 | <link rel="stylesheet" type="text/css" href="resources/css/ext-all.css" /> |
| 6 | <link href="http://www.linaro.org/remote/css/init.css" rel="stylesheet" type="text/css" > |
| 7 | <link href="http://www.linaro.org/remote/css/remote.css" rel="stylesheet" type="text/css" > |
| 8 | <script language="javascript" type="text/javascript" src="http://www.linaro.org/remote/js/linarofamily.js"></script> |
| 9 | <script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script> |
| 10 | <style type="text/css"> |
| 11 | #content table { margin-left: 20px; width: auto; margin-bottom: 20px; } |
| 12 | #content th { padding-top: 15px; padding-right: 5px; } |
| 13 | </style> |
| 14 | <script language="javascript" type="text/javascript"> |
| 15 | |
| 16 | var lavaJobId = 0; |
| 17 | |
| 18 | function onload() { |
| 19 | if (lavaJobId == 0) return; |
| 20 | |
| 21 | $$("#jobId").html("Job ID: <a href='http://validation.linaro.org/lava-server/scheduler/job/" + lavaJobId + "'>" + lavaJobId + "</a>"); |
| 22 | $$("#jobStatus").html("Job Status: loading..."); |
| 23 | |
| 24 | var url = "http://validation.linaro.org/lava-server/scheduler/job/" + lavaJobId + "/json?callback=?"; |
| 25 | $$.getJSON(url, function(job) { |
| 26 | $$("#jobStatus").html("Job Status: " + job.status); |
| 27 | $$("#jobResults").html("Test Results: loading ..." ); |
| 28 | |
| 29 | url = job.results_link + "json?callback=?"; |
| 30 | $$.getJSON(url, function(results) { |
| 31 | $$("#jobResults").html("Test Results: loaded" ); |
| 32 | h = "<table class='results'><tr><th>Name</th><th>Pass</th><th>Fail</th></tr>"; |
| 33 | for(var run in results.test_runs) { |
| 34 | r = results.test_runs[run]; |
| 35 | h += "<tr><td><a href='" + r.url + "'>" + r.name+ "</a></td><td>" + r.results.pass + "</td><td>" + r.results.fail + "</td></tr>"; |
| 36 | } |
| 37 | h += "</table>"; |
| 38 | $$("#jobResults").html(h); |
| 39 | }); |
| 40 | }); |
| 41 | } |
| 42 | </script> |
| 43 | </head> |
| 44 | <body onload="onload();"> |
| 45 | <div id="head"> |
| 46 | <h1>Linaro Snapshots</h1> |
| 47 | </div> |
| 48 | <div id="content"> |
| 49 | |
| 50 | <h1>Image Info</h1> |
| 51 | |
| 52 | <table> |
| 53 | <tr><td><a href='${image_name}'>${image_name}</a>:</td><td>md5sum(${md5})</td></tr> |
| 54 | <tr><td>root file system:</td><td>${rfs}</td></tr> |
| 55 | </table> |
| 56 | |
| 57 | <h1>LAVA Test Results</h1> |
| 58 | <div id='jobId'> n/a </div> |
| 59 | <div id='jobStatus'></div> |
| 60 | <div id='jobResults'></div> |
| 61 | </body> |
| 62 | </html> |
| 63 | |