clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r1145250 - /incubator/clerezza/trunk/parent/platform.style.default/src/main/scala/HeadedPageRenderlet.scala
Date Mon, 11 Jul 2011 17:33:39 GMT
Author: reto
Date: Mon Jul 11 17:33:38 2011
New Revision: 1145250

URL: http://svn.apache.org/viewvc?rev=1145250&view=rev
Log:
CLEREZZA-604: fixed login button (without using js as in classic style)

Modified:
    incubator/clerezza/trunk/parent/platform.style.default/src/main/scala/HeadedPageRenderlet.scala

Modified: incubator/clerezza/trunk/parent/platform.style.default/src/main/scala/HeadedPageRenderlet.scala
URL: http://svn.apache.org/viewvc/incubator/clerezza/trunk/parent/platform.style.default/src/main/scala/HeadedPageRenderlet.scala?rev=1145250&r1=1145249&r2=1145250&view=diff
==============================================================================
--- incubator/clerezza/trunk/parent/platform.style.default/src/main/scala/HeadedPageRenderlet.scala
(original)
+++ incubator/clerezza/trunk/parent/platform.style.default/src/main/scala/HeadedPageRenderlet.scala
Mon Jul 11 17:33:38 2011
@@ -1,5 +1,6 @@
 package org.apache.clerezza.platform.style.default
 
+import java.net.URLEncoder
 import javax.ws.rs.core.MediaType
 import org.apache.clerezza.platform.typerendering._
 import org.apache.clerezza.rdf.core.UriRef
@@ -79,7 +80,8 @@ resultDocModifier.addScriptReference("/s
 									}
 							if((userName).equals("anonymous")) {
 								<span>
-									<a href="#" id="tx-login-button">login</a>
+									<a href= {"/login?referer="+URLEncoder.encode(uriInfo.getAbsolutePath.toString,
"utf-8")}
+											  id="tx-login-button">login</a>
 								</span>
 							} else {
 								<span><a href={"/user/" + userName + "/control-panel"}>{displayName}</a>|<a
href="/logout">logout</a></span>



Mime
View raw message