Files
maven-plugins/xdoc/src/plugin-resources/templates/team-list.xml
T

140 lines
4.0 KiB
XML

<?xml version="1.0" encoding="$encoding" ?>
<document>
<properties>
<title>Project Team</title>
</properties>
<head>
<script type="text/javascript">
function offsetDate(id, offset) {
var now = new Date() ;
var nowTime = now.getTime() ;
var localOffset = now.getTimezoneOffset() ;
var developerTime = nowTime + (offset * 60 * 60 * 1000) + (localOffset * 60 * 1000) ;
var developerDate = new Date(developerTime) ;
document.getElementById(id).innerHTML = developerDate;
}
function init() {
#foreach ($developer in $project.developers)
#if ($developer.timezone)
#if ($developer.timezone != "")
offsetDate("developer-$developer.id", "$developer.timezone");
#end
#end
#end
}
</script>
</head>
<body onload="init();">
<section name="The Team">
<p>
A successful project requires many people to play many roles.
Some members write code or documentation, while others are
valuable as testers, submitting patches and suggestions.
</p>
<p>
The team is comprised of <a href="#Members">Members</a>
and <a href="#Contributors">Contributors</a>. Members
have direct access to the source of a project and actively
evolve the code-base. Contributors improve the project
through submission of patches and suggestions to the Members.
The number of Contributors to the project is unbounded.
Get involved today. All contributions to the project are
greatly appreciated.
</p>
<subsection name="Members">
#if ($project.developers.size() == 0)
<p>
There are no developers working on this project. Please check
back at a later date.
</p>
#else
<p>
The following is a list of developers with commit privileges that have
directly contributed to the project in one way or another.
</p>
<table>
<thead>
<tr>
<th>Name</th>
<th>Id</th>
<th>Email</th>
<th>Organization</th>
<th>Roles</th>
<th>TZ Offset</th>
<th>Time</th>
</tr>
</thead>
<tbody>
#foreach ($developer in $project.developers)
<tr>
#if ($developer.url.length() != 0)
<td><a href="$developer.url">$!developer.name</a></td>
#else
<td>$!developer.name</td>
#end
<td><a name="$!developer.id">$!developer.id</a></td>
<td><a href="mailto:$!developer.email">$!developer.email</a></td>
<td>$!developer.organization</td>
<td>
#foreach ($role in $developer.roles)
$role<br/>
#end
</td>
<td>$!developer.timezone</td>
<td><span id="developer-$developer.id">Unknown</span></td>
</tr>
#end
</tbody>
</table>
#end
</subsection>
<subsection name="Contributors">
#if ($project.contributors.size() == 0)
<p>
There are no contributors listed for this project. Please check
back again later.
</p>
#else
<p>
The following additional people have contributed to this project
through the way of suggestions, patches or documentation.
</p>
<table>
<thead>
<tr>
<th>Name</th>
<th>Email</th>
<th>Organization</th>
<th>Roles</th>
</tr>
</thead>
<tbody>
#foreach ($contributor in $project.contributors)
<tr>
<td>$!contributor.name</td>
<td><a href="mailto:$!contributor.email">$!contributor.email</a></td>
<td>$!contributor.organization</td>
<td>
#foreach ($role in $contributor.roles)
$role<br/>
#end
</td>
</tr>
#end
</tbody>
</table>
#end
</subsection>
</section>
</body>
</document>