function setDisplayedVersion() { for(var d=0; d table row row = document.createElement('tr'); // Create a for the report status and set class name var status = document.createElement('td'); status.appendChild(document.createTextNode(report.status)); status.className = report.status.toUpperCase(); row.appendChild(status); // Create a link to the report details var link = document.createElement('a'); var href = 'http://nntp.x.perl.org/group/perl.cpan.testers/' + report.id; link.setAttribute('href',href); link.appendChild(document.createTextNode(report.id)); row.appendChild(link); var properties = ['perl','ostext','osvers','archname']; for(var p=0; p for the report status and set class name var cell = document.createElement('td'); cell.setAttribute('colspan',6); cell.appendChild(para); row.appendChild(cell); rows.appendChild(row); } var tbody = document.getElementById('data-'+versions[d]); tbody.parentNode.replaceChild(rows,tbody); } } function callSummary() { OpenThought.CallUrl('/cgi-bin/reports-summary.cgi', [ 'author_pref', 'perlmat_pref', 'patches_pref', 'oncpan_pref', 'distmat_pref', 'perlver_pref', 'osname_pref' ] ); } function reloadReports() { setDisplayedVersion(); callSummary(); } function displayReports() { setDisplayedVersion(); callSummary(); } function init() { readCookies(); setDisplayedVersion(); callSummary(); }