| <?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. | |
| </p> | |
| <blockquote> | |
| <?php | |
| foreach (getCandidates(false)->getCandidates() as $candidate) { | |
| $name = $candidate->getName(); | |
| //$weight = $candidate->getWeight(); | |
| $email = $candidate->getEmail(); | |
| $projects = join(', ', $candidate->getProjects()); | |
| echo "<div class=\"slideup_toggle\">"; | |
| echo "<p>$name</p>"; | |
| echo "<div class=\"slideup\">"; | |
| echo "<p>Contributed to: $projects</p>"; | |
| echo "<ul>"; | |
| foreach($candidate->getCommits() as $commit) { | |
| $id = $commit->getId(); | |
| $link = $commit->getLink(); | |
| $comment = htmlspecialchars($commit->getComment()); | |
| $type = $commit->getType(); | |
| if ($bug = $commit->getBugId()) { | |
| $comment = preg_replace('/(bug:?\s*#?(\d+))|(\[\d+])/i', "<a href=\"https://bugs.eclipse.org/$bug\">$0</a>",$comment); | |
| } | |
| echo "<li>[<font face=\"monospace\"><a href=\"$link\">$id</a></font>] $comment</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 ); | |
| ?> |