esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhir...@apache.org
Subject svn commit: r953626 - in /incubator/esme/trunk/server/src/main: scala/org/apache/esme/snippet/TagDisplay.scala webapp/info_view/user.html
Date Fri, 11 Jun 2010 09:41:53 GMT
Author: rhirsch
Date: Fri Jun 11 09:41:53 2010
New Revision: 953626

URL: http://svn.apache.org/viewvc?rev=953626&view=rev
Log:
[ESME-195] User Details
Added first + Last name + image doesn't work yet

Modified:
    incubator/esme/trunk/server/src/main/scala/org/apache/esme/snippet/TagDisplay.scala
    incubator/esme/trunk/server/src/main/webapp/info_view/user.html

Modified: incubator/esme/trunk/server/src/main/scala/org/apache/esme/snippet/TagDisplay.scala
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/scala/org/apache/esme/snippet/TagDisplay.scala?rev=953626&r1=953625&r2=953626&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/scala/org/apache/esme/snippet/TagDisplay.scala (original)
+++ incubator/esme/trunk/server/src/main/scala/org/apache/esme/snippet/TagDisplay.scala Fri
Jun 11 09:41:53 2010
@@ -59,14 +59,17 @@ object TagDisplay {
     }
 
 
-    bind("user", in,
-         "nicename" -> user.niceName,
+     bind("user", in,
          "nicename" -> user.niceName,
+         "lastName" -> user.lastName,
+         "firstName" -> user.firstName,
+          "image" -> user.image_url,
          "followButton" -> followOrNot,
          "timeline" -> bindTag(Mailbox.mostRecentMessagesFor(user.id, 50).map(_._1)) _,
          "messages" -> bindTag(Message.findAll(By(Message.author, user), OrderBy(Message.id,
Descending), MaxRows(50))) _,
          AttrBindParam("userId", Text(user.id.toString),"userId")
     )
+
   
   }
 

Modified: incubator/esme/trunk/server/src/main/webapp/info_view/user.html
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/webapp/info_view/user.html?rev=953626&r1=953625&r2=953626&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/webapp/info_view/user.html (original)
+++ incubator/esme/trunk/server/src/main/webapp/info_view/user.html Fri Jun 11 09:41:53 2010
@@ -31,6 +31,9 @@
 <div id="back-header">
        <lift:user_info>
 	<h1><lift:loc>ui_user_single_title</lift:loc> <i>'<user:nicename/>'</i></h1>
+	<img lift:snippet="user:imageUrl" alt="" width="50px"/>
+	<h4><lift:loc>ui_sign_up_firstname</lift:loc>: <user:firstName/></h4>
+	<h4><lift:loc>ui_sign_up_lastname</lift:loc>: <user:lastName/></h4>
 	<div class="container-aux">
         <span id="following"><user:followButton/></span>
             <div class="ui-tabs ui-widget ui-widget-content ui-corner-all" id="tabs">



Mime
View raw message