blob: 3f696652d81b399578460e64b8183eb511781d4a [file] [log] [blame]
<?php
/*******************************************************************************
* Copyright (c) 2016 Eclipse Foundation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Wayne Beaton - initial API and implementation
*******************************************************************************/
require_once(dirname(__FILE__) . "/../../eclipse.org-common/system/app.class.php");
require_once(dirname(__FILE__) . "/../../eclipse.org-common/system/nav.class.php");
require_once(dirname(__FILE__) . "/../../eclipse.org-common/system/menu.class.php");
require_once(dirname(__FILE__) . '/util/queries.php');
$App = new App();
$Nav = new Nav();
$Menu = new Menu();
require_once(dirname(__FILE__) . "/../classes/util/summary.php");
ob_start();
$pageKeywords = "";
$pageTitle = "Great Fixes for Neon";
$pageAuthor = "Wayne Beaton";
?>
<div id="midcolumn">
<div class="homeitem">
<h1><?= $pageTitle ?></h1>
<p>
Here is the list of <a href="index.php">Great Fixes for Neon</a>
candidates. Click on the the name to see the
list of qualifying commits. Note that this list is provided for
informational purposes only and that it may contain errors due to
limitations in the underlying data. Please report any errors that you
see here to <a href="mailto:emo@eclipse.org">the EMO</a>.
</p>
<blockquote>
<?php
foreach (getCandidates(true)->getCandidates() as $candidate) {
//if (count($candidate->getCommits()) < 10) continue;
$name = htmlspecialchars($candidate->getName());
//$weight = $candidate->getWeight();
$email = $candidate->getEmail();
$summary = $candidate->getSummary();
echo "<div class=\"slideup_toggle\">";
echo "<p>$name <em>$summary</em></p>";
echo "<div class=\"slideup\">";
// Group by project
$projects = array();
foreach($candidate->getCommits() as $commit) {
$id = $commit->getId();
$link = $commit->getLink();
$comment = htmlspecialchars($commit->getComment());
$project = $commit->getProject();
$type = $commit->getType();
$added = $commit->getLinesAdded();
$removed = $commit->getLinesRemoved();
if ($bug = $commit->getBugId()) {
$comment = preg_replace('/(bug:?\s*#?(\d+))|(\[\d+])/i', "<a href=\"https://bugs.eclipse.org/$bug\">$0</a>",$comment);
}
$projects[$project][] = "<li>[<font face=\"monospace\"><a href=\"$link\">$id</a></font>] $comment (+$added -$removed)</li>";
}
echo "<ul>";
foreach ($projects as $project => $list) {
echo "<li>$project<ul>";
foreach ($list as $item) {
echo $item;
}
echo "</ul></li>";
}
echo "</ul>";
echo "</div>";
echo "</div>";
}
?>
</blockquote>
</div>
</div>
<?php
$html = ob_get_contents();
ob_end_clean();
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html );
?>