Add a column for CQs; fix padding.
diff --git a/tools/status.php b/tools/status.php
index bda6c54..f476d92 100644
--- a/tools/status.php
+++ b/tools/status.php
@@ -134,27 +134,42 @@
}
+$css = "<style>
+table.status {padding:5px;}
+table.status th div {
+ width:2em; line-height: 90%;
+ -webkit-transform:rotate(-45deg);
+ -moz-transform:rotate(-90deg);
+}
+
+table.status tr.odd {
+ background-color:#E2E2E2;
+}
+</style>";
+$App->AddExtraHtmlHeader($css);
+
function dumpStatus($projects) {
global $images;
- echo "<table width=\"100%\">";
+ echo "<table class=\"status\" width=\"100%\">";
echo "<tr style=\"height: 5em;vertical-align:bottom\">";
- echo "<th><div style=\"width:2em;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-90deg);\"><a href=\"?" . getHttpParameters('top') . "\">Top Level</a></div></th>";
- echo "<th><div style=\"width:2em;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-90deg);\"><a href=\"?" . getHttpParameters('id') . "\">Name</a></div></th>";
- echo "<th><div style=\"width:2em;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-90deg);\"><a href=\"?" . getHttpParameters('phase') . "\">Phase</a></div></th>";
- echo "<th><div style=\"width:3em;line-height:90%;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-90deg);\"><a href=\"?" . getHttpParameters('liveliness') . "\">Commit<br/>Activity</a></div></th>";
- echo "<th><div style=\"width:3em;line-height:90%;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-90deg);\"><a href=\"?" . getHttpParameters('committers') . "\">Active<br/>Committers</a></div></th>";
- echo "<th><div style=\"width:3em;line-height:90%;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-90deg);\"><a href=\"?" . getHttpParameters('organizations') . "\">Active<br/>Organizations</a></div></th>";
- echo "<th><div style=\"width:3em;line-height:90%;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-90deg);\"><a href=\"?" . getHttpParameters('initialCommit') . "\">Initial</a></div></th>";
- echo "<th><div style=\"width:3em;line-height:90%;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-90deg);\"><a href=\"?" . getHttpParameters('latestCommit') . "\">Latest</a></div></th>";
- echo "<th><div style=\"width:3em;line-height:90%;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-90deg);\"><a href=\"?" . getHttpParameters('totalCommits') . "\">Count</a></div></th>";
+ echo "<th><div><a href=\"?" . getHttpParameters('top') . "\">Top Level</a></div></th>";
+ echo "<th><div><a href=\"?" . getHttpParameters('id') . "\">Name</a></div></th>";
+ echo "<th><div>Contribution Questionnaires</div></th>";
+ echo "<th><div><a href=\"?" . getHttpParameters('phase') . "\">Phase</a></div></th>";
+ echo "<th><div><a href=\"?" . getHttpParameters('liveliness') . "\">Commit Activity</a></div></th>";
+ echo "<th><div><a href=\"?" . getHttpParameters('committers') . "\">Active Committers</a></div></th>";
+ echo "<th><div><a href=\"?" . getHttpParameters('organizations') . "\">Active Organizations</a></div></th>";
+ echo "<th><div><a href=\"?" . getHttpParameters('initialCommit') . "\">Initial Commit</a></div></th>";
+ echo "<th><div><a href=\"?" . getHttpParameters('latestCommit') . "\">Latest Commit</a></div></th>";
+ echo "<th><div><a href=\"?" . getHttpParameters('totalCommits') . "\">Total Commits</a></div></th>";
echo "</tr>";
usort($projects, 'sort_projects');
- $colour = true;
+ $odd = true;
foreach($projects as $project) {
$top = $project['top'];
$topName = $project['topName'];
@@ -169,12 +184,13 @@
$latest = valueOrDashes($project['latestCommit']);
$totalCommits = valueOrDashes($project['totalCommits']);
- $style = $colour ? ' style="background-color:#E2E2E2"' : '';
- $colour = !$colour;
+ $class = $odd ? 'odd' : 'even';
+ $odd = !$odd;
- echo "<tr$style>";
+ echo "<tr class=\"$class\">";
echo "<td>$topName</td>";
echo "<td><a href=\"$url\">$name</a></td>";
+ echo "<td><a target=\"ipzilla\" href=\"https://dev.eclipse.org/ipzilla/buglist.cgi?component=$id\"><img src=\"/projects/images/external.gif\"/></a></td>";
echo "<td>$phase</td>";
echo "<td><img src=\"$liveliness\"/></td>";
echo "<td>$committers</td>";