blob: 0bcde4c0eec9cabfbcc98e785b52ac4b7ba24c96 [file]
<?php require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php"); require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php"); require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php"); $App = new App(); $Nav = new Nav(); $Menu = new Menu(); include($App->getProjectCommon()); # All on the same line to unclutter the user's desktop'
$pageTitle = "Eclipse Development Process";
$pageKeywords = "development process";
$pageAuthor = "Bjorn Freeman-Benson Jan 2006";
ob_start();
?>
<div id="maincontent">
<div id="midcolumn">
<h2>Other Project Pages</h2>
<p>The project status information is stored and used in a number of places:</p>
<ol>
<li>The Eclipse Foundation's internal database of projects. (<a href="project-status-infrastructure-page1.php">see
&quot;how to&quot; page 1</a>)</li>
<li>The project's own <code>project-info/</code> directory. (<a href="project-status-infrastructure-page2.php">see
&quot;how to&quot; page 2</a>)</li>
<li>The project's own <code> index.php</code> home page. (<a href="project-status-infrastructure-page3.php">see
&quot;how to&quot; page 3</a>)</li>
<li>Other project pages (the topic of this
page)</li>
</ol>
<h3>4. Other Project Pages</h3>
<p>Projects are invited to use the project-info information on their project
pages for a number of reasons.</p>
<h4>4.1 Centralized Information</h4>
<p>One good reason to use the project-info PHP objects and methods on the
project pages is to centralize information. For example, the projectInfo object
(<a href="project-status-infrastructure-page2.php">see page 2</a>), has methods
to return the URLs for the project plan, the IP log, the download page, etc. If
your project pages use these methods instead of hard-coding the URLs, changes
can be made in the single project-info.xml file and immediately reflected in all
pages.</p>
<h4>4.2 Dashboard Information</h4>
<p>The project dashboards are recomputed each night and are summarized and
displayed on the <a href="/projects/dashboard/">central eclipse.org dashboard
pages</a>. Individual projects may, however, want to display their own project's
dashboard stats as part of their project's home (or other) pages.</p>
<p>The ProjectInfo object has <a href="/projects/common/doc/">a number of
dashboard access methods</a> including:</p>
<ul>
<li><b>dashboard_liveness</b> - the current liveness number</li>
<li><b>dashboard_bugs </b>- total number of bugs</li>
<li><b>dashboard_bugs_30_delta </b>- change in the number of bugs over the
last 30 days</li>
<li><b>dashboard_news_7_number_posts</b> - number of news posts in the last 7
days</li>
<li><b>dashboard_bugs_lights </b>- an HTML fragment showing the same
red-white-green lights as the dashboard shows; this one is for bugs</li>
<li><b>dashboard_news_lights </b>- similar for news postings</li>
</ul>
<p>For example, the project can add a right column info box with the dashboard
lights using this PHP fragment:</p>
<pre style="border: thin 1px dashed; background-color: ivory;
padding-top: 2px;
padding-left: 2px;
padding-right: 2px;
padding-bottom: 2px">&lt;div id=&quot;rightcolumn&quot;&gt;
...
&lt;div class=&quot;sideitem&quot;&gt;
&lt;h6&gt;Dashboard&lt;/h6&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;font size=&quot;+1&quot;&gt;&lt;?= $projectInfo-&gt;dashboard_liveness() ?&gt;&lt;/font&gt;&lt;br/&gt;
&lt;?= $projectInfo-&gt;dashboard_bugs_lights() ?&gt;&lt;br/&gt;
&lt;?= $projectInfo-&gt;dashboard_news_lights() ?&gt;
&lt;/div&gt;
&lt;/div&gt;
...
&lt;/div&gt;</pre>
<p>And you end up with a live view of the dashboard on your project page:</p>
<p align="center"><img border="0" src="images/mini-dashboard.gif"></p>
<p align="right"><a href="project-status-infrastructure-page3.php"><img border="0" src="images/prior_step_button.jpg"></a>&nbsp;&nbsp;</p>
</div>
</div>
<?php
# Paste your HTML content between the EOHTML markers!
$html = ob_get_contents();
ob_end_clean();
# Generate the web page
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
?>