[Yanel-commits] rev 44370 - in
public/yanel/contributions/resources/timetracker: htdocs
src/java/org/wyona/yanel/impl/resources/timetracker
michi at wyona.com
michi at wyona.com
Mon Aug 24 23:34:38 CEST 2009
Author: michi
Date: 2009-08-24 23:34:38 +0200 (Mon, 24 Aug 2009)
New Revision: 44370
Modified:
public/yanel/contributions/resources/timetracker/htdocs/create-entry.xsl
public/yanel/contributions/resources/timetracker/src/java/org/wyona/yanel/impl/resources/timetracker/TimeTrackerResource.java
Log:
description replaced by name
Modified: public/yanel/contributions/resources/timetracker/htdocs/create-entry.xsl
===================================================================
--- public/yanel/contributions/resources/timetracker/htdocs/create-entry.xsl 2009-08-24 21:28:42 UTC (rev 44369)
+++ public/yanel/contributions/resources/timetracker/htdocs/create-entry.xsl 2009-08-24 21:34:38 UTC (rev 44370)
@@ -16,12 +16,14 @@
</head>
<body>
<a href="?yanel.resource.viewid=xml">Debug XML</a>
- <h1>Create Time Entry</h1>
- <form>
<table>
<tr>
<td>Your name:</td><td><xsl:value-of select="/tt:time-tracking/tt:user"/><xsl:apply-templates select="/tt:time-tracking/tt:no-identity-yet"/></td>
</tr>
+ </table>
+ <h1>Create Time Entry</h1>
+ <form>
+ <table>
<tr><td>*Date:</td><td><input type="text" name="date" value="TODO"/></td></tr>
<tr><td>*Client/Project:</td><td><select name="client-project"><option value="todo1">TODO 1</option><option value="todo2">TODO 2</option></select></td></tr>
<tr><td>*Task/Description:</td><td><input type="text" name="task-description" value=""/></td></tr>
Modified: public/yanel/contributions/resources/timetracker/src/java/org/wyona/yanel/impl/resources/timetracker/TimeTrackerResource.java
===================================================================
--- public/yanel/contributions/resources/timetracker/src/java/org/wyona/yanel/impl/resources/timetracker/TimeTrackerResource.java 2009-08-24 21:28:42 UTC (rev 44369)
+++ public/yanel/contributions/resources/timetracker/src/java/org/wyona/yanel/impl/resources/timetracker/TimeTrackerResource.java 2009-08-24 21:34:38 UTC (rev 44370)
@@ -31,7 +31,7 @@
org.wyona.security.core.api.Identity identity = getEnvironment().getIdentity();
if (identity != null && identity.getUsername() != null) {
org.wyona.security.core.api.User user = getRealm().getIdentityManager().getUserManager().getUser(identity.getUsername());
- sb.append(" <user id=\"" + identity.getUsername() + "\">" + user.getDescription() + "</user>");
+ sb.append(" <user id=\"" + identity.getUsername() + "\">" + user.getName() + "</user>");
} else {
sb.append("<no-identity-yet/>");
}
More information about the Yanel-commits
mailing list