You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by bw...@apache.org on 2003/04/12 03:55:31 UTC
cvs commit: maven/src/plugins-build/xdoc/src/plugin-resources/templates team-list.xml
bwalding 2003/04/11 18:55:30
Modified: src/plugins-build/xdoc/src/plugin-resources/templates
team-list.xml
Log:
Add the timezone field
PR:MAVEN-387
Revision Changes Path
1.2 +30 -1 maven/src/plugins-build/xdoc/src/plugin-resources/templates/team-list.xml
Index: team-list.xml
===================================================================
RCS file: /home/cvs/maven/src/plugins-build/xdoc/src/plugin-resources/templates/team-list.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- team-list.xml 24 Jan 2003 03:45:03 -0000 1.1
+++ team-list.xml 12 Apr 2003 01:55:30 -0000 1.2
@@ -4,8 +4,33 @@
<properties>
<title>Project Team</title>
</properties>
+
+ <head>
+ <script language="javascript">
+ function offsetDate(id, offset) {
+ var date = new Date();
+ var dateOffset = new Date(
+ Date.UTC(
+ date.getFullYear(),
+ date.getMonth(),
+ date.getDate(),
+ date.getHours(),
+ date.getMinutes(),
+ date.getSeconds()
+ ) + offset*60*60*1000);
- <body>
+ document.getElementById(id).innerHTML = dateOffset;
+ }
+
+ function init() {
+ #foreach ($developer in $project.developers)
+ offsetDate("developer-$developer.id", "$developer.timezone");
+ #end
+ }
+ </script>
+ </head>
+
+ <body OnLoad="init();">
<section name="The Team">
<p>
@@ -44,6 +69,8 @@
<th>Email</th>
<th>Organization</th>
<th>Roles</th>
+ <th>TZ Offset</th>
+ <th>Time</th>
</tr>
#foreach ($developer in $project.developers)
<tr>
@@ -60,6 +87,8 @@
$role<br/>
#end
</td>
+ <td>$!developer.timezone</td>
+ <td><span id="developer-$developer.id">Unknown</span></td>
</tr>
#end
</table>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org