You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@esme.apache.org by rh...@apache.org on 2009/12/22 06:29:51 UTC

svn commit: r893072 - in /incubator/esme/branches/new-ui/src/main/webapp: ./ images/ scripts/ templates-hidden/

Author: rhirsch
Date: Tue Dec 22 05:29:49 2009
New Revision: 893072

URL: http://svn.apache.org/viewvc?rev=893072&view=rev
Log:
[ESME-111] Finish web UI



Added:
    incubator/esme/branches/new-ui/src/main/webapp/images/bg-i.png   (with props)
    incubator/esme/branches/new-ui/src/main/webapp/images/bg-left.png   (with props)
    incubator/esme/branches/new-ui/src/main/webapp/images/bg-m.png   (with props)
    incubator/esme/branches/new-ui/src/main/webapp/images/bg-right.png   (with props)
    incubator/esme/branches/new-ui/src/main/webapp/images/bg-right1.png   (with props)
    incubator/esme/branches/new-ui/src/main/webapp/images/bg-t.png   (with props)
    incubator/esme/branches/new-ui/src/main/webapp/images/btn-send-m.png   (with props)
    incubator/esme/branches/new-ui/src/main/webapp/images/btn-sign-in.png   (with props)
    incubator/esme/branches/new-ui/src/main/webapp/images/delete.png   (with props)
    incubator/esme/branches/new-ui/src/main/webapp/images/esme-blue.png   (with props)
    incubator/esme/branches/new-ui/src/main/webapp/images/img-1.png   (with props)
    incubator/esme/branches/new-ui/src/main/webapp/images/mail.png   (with props)
    incubator/esme/branches/new-ui/src/main/webapp/images/send-message.png   (with props)
    incubator/esme/branches/new-ui/src/main/webapp/images/sh-b.png   (with props)
    incubator/esme/branches/new-ui/src/main/webapp/images/sh-r.png   (with props)
    incubator/esme/branches/new-ui/src/main/webapp/images/sh-t.png   (with props)
    incubator/esme/branches/new-ui/src/main/webapp/images/sign-on.png   (with props)
    incubator/esme/branches/new-ui/src/main/webapp/scripts/
    incubator/esme/branches/new-ui/src/main/webapp/scripts/display_messages.js
    incubator/esme/branches/new-ui/src/main/webapp/signup.html
    incubator/esme/branches/new-ui/src/main/webapp/templates-hidden/
    incubator/esme/branches/new-ui/src/main/webapp/templates-hidden/default.html
    incubator/esme/branches/new-ui/src/main/webapp/templates-hidden/message.html
    incubator/esme/branches/new-ui/src/main/webapp/templates-hidden/openid_login_form.html
    incubator/esme/branches/new-ui/src/main/webapp/templates-hidden/upw_login_form.html
Modified:
    incubator/esme/branches/new-ui/src/main/webapp/index.html

Added: incubator/esme/branches/new-ui/src/main/webapp/images/bg-i.png
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/images/bg-i.png?rev=893072&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/esme/branches/new-ui/src/main/webapp/images/bg-i.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/esme/branches/new-ui/src/main/webapp/images/bg-left.png
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/images/bg-left.png?rev=893072&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/esme/branches/new-ui/src/main/webapp/images/bg-left.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/esme/branches/new-ui/src/main/webapp/images/bg-m.png
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/images/bg-m.png?rev=893072&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/esme/branches/new-ui/src/main/webapp/images/bg-m.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/esme/branches/new-ui/src/main/webapp/images/bg-right.png
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/images/bg-right.png?rev=893072&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/esme/branches/new-ui/src/main/webapp/images/bg-right.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/esme/branches/new-ui/src/main/webapp/images/bg-right1.png
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/images/bg-right1.png?rev=893072&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/esme/branches/new-ui/src/main/webapp/images/bg-right1.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/esme/branches/new-ui/src/main/webapp/images/bg-t.png
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/images/bg-t.png?rev=893072&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/esme/branches/new-ui/src/main/webapp/images/bg-t.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/esme/branches/new-ui/src/main/webapp/images/btn-send-m.png
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/images/btn-send-m.png?rev=893072&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/esme/branches/new-ui/src/main/webapp/images/btn-send-m.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/esme/branches/new-ui/src/main/webapp/images/btn-sign-in.png
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/images/btn-sign-in.png?rev=893072&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/esme/branches/new-ui/src/main/webapp/images/btn-sign-in.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/esme/branches/new-ui/src/main/webapp/images/delete.png
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/images/delete.png?rev=893072&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/esme/branches/new-ui/src/main/webapp/images/delete.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/esme/branches/new-ui/src/main/webapp/images/esme-blue.png
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/images/esme-blue.png?rev=893072&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/esme/branches/new-ui/src/main/webapp/images/esme-blue.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/esme/branches/new-ui/src/main/webapp/images/img-1.png
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/images/img-1.png?rev=893072&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/esme/branches/new-ui/src/main/webapp/images/img-1.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/esme/branches/new-ui/src/main/webapp/images/mail.png
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/images/mail.png?rev=893072&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/esme/branches/new-ui/src/main/webapp/images/mail.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/esme/branches/new-ui/src/main/webapp/images/send-message.png
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/images/send-message.png?rev=893072&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/esme/branches/new-ui/src/main/webapp/images/send-message.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/esme/branches/new-ui/src/main/webapp/images/sh-b.png
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/images/sh-b.png?rev=893072&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/esme/branches/new-ui/src/main/webapp/images/sh-b.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/esme/branches/new-ui/src/main/webapp/images/sh-r.png
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/images/sh-r.png?rev=893072&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/esme/branches/new-ui/src/main/webapp/images/sh-r.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/esme/branches/new-ui/src/main/webapp/images/sh-t.png
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/images/sh-t.png?rev=893072&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/esme/branches/new-ui/src/main/webapp/images/sh-t.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/esme/branches/new-ui/src/main/webapp/images/sign-on.png
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/images/sign-on.png?rev=893072&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/esme/branches/new-ui/src/main/webapp/images/sign-on.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: incubator/esme/branches/new-ui/src/main/webapp/index.html
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/index.html?rev=893072&r1=893071&r2=893072&view=diff
==============================================================================
--- incubator/esme/branches/new-ui/src/main/webapp/index.html (original)
+++ incubator/esme/branches/new-ui/src/main/webapp/index.html Tue Dec 22 05:29:49 2009
@@ -1,153 +1,54 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-<title>ESME</title>
-<meta http-equiv="Content-Language" content="en-US" />
-<meta http-equiv="Content-Script-Type" content="text/javascript" />
-<meta http-equiv="Content-Style-Type" content="text/css" />
-<meta http-equiv="imagetoolbar" content="no" />
-
-<meta name="keywords" content="ESME" lang="en-US" />
-<meta name="description" content="ESME" lang="en-US" />
-<meta name="copyright" content="ESME" lang="en-US" />
-<meta name="generator" content="" lang="en-US" />
-<meta name="author" content="ESME Designed by Joy Reyes" lang="en-US" />
-<meta name="Robots" content="index,follow,noodp" />
-<link rel="stylesheet" href="src/style.css" type="text/css" media="screen" />
-</head>
-
-<body id="home">
-	
-<div id="container-bg">
-<div id="container">
-
-<div id="header">
-	<div id="logo"><h1><a href="/">ESME</a></h1></div>
-	<div id="top-menu"><a href="/"><img src="images/btn-signup.gif" alt="" /></a></div>
-</div>
-<!--// ENDS HEADER -->
-
-<div id="left">
-	<!---BLUE HEADER-->
-	<div id="container-2nd-level-bg">
-		<div id="container-2nd-level">
-		       <h1><span>Getting Started on ESME</span></h1>
-		       Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec interdum mauris eu est faucibus laoreet. Maecenas pulvinar ornare eros non hendrerit. Aliquam rutrum, mauris ut consectetur placerat, magna neque pulvinar eros, sed pretium purus turpis fermentum ligula. Vestibulum erat elit, dictum non hendrerit in, aliquet posuere augue. Aliquam mauris dolor, luctus sit amet luctus vitae, viverra tempor est. Donec metus lorem, hendrerit in venenatis ac.
-			  		<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec interdum mauris eu est faucibus laoreet. </p>
-		</div><!--container-2nd-level-->
-	</div><!--container-2nd-level-bg-->
-	<!--END BLUE HEADER-->	
-
-	<div class="gray-box">
-		<h1>Now on ESME</h1>
-		<div class="avatar"><img src="images/avatar1.jpg" alt="" /></div>
-		<div class="update">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam mauris velit, feugiat quis varius ac, malesuada in lectus. Nunc suscipit condimentum eros vitae lacinia. 
-			<div class="tag"><a href="">mac</a>, <a href="">design</a>, <a href="">graphics</a>, <a href="">photoshop</a>, <a href="">cs3</a></div>	
-			<div class="info"><a href="">Nickname</a> 3 hours ago</div>
-		</div>
-	</div><!--gray-box-->
-	
-	<div class="tags-box">
-		<a href="" class="style5">software</a> 
-		<a href="" class="style5">teaching</a> 
-		<a href="" class="style3">Technology</a> 
-		<a href="" class="style3">movies</a> 
-		<a href="" class="style2">twitter</a> 
-		<a href="" class="style1">ebook</a> 
-		<a href="" class="style4">web design</a> 
-		<a href="" class="style4">wordpress</a> 
-		<a href="" class="style1">work from home</a> 
-		<a href="" class="style2">illustrator</a> 
-		<a href="" class="style5">PHP</a> 
-		<a href="" class="style4">AJAX</a> 
-		<a href="" class="style1">wiki</a> 
-		<a href="" class="style3">virtual assistant</a> 
-		<a href="" class="style2">blogging</a> 
-		<a href="" class="style2">movies</a> 
-		<a href="" class="style5">youtube</a> 
-		<a href="" class="style3">free stuff</a> 
-		<a href="" class="style4">tutorials</a> 
-		<a href="" class="style1">articles</a> 
-		<a href="" class="style4">jQuery samples</a>
-	</div>
-	
-	
-</div><!--left-->
-<div id="right">
-	
-	<div id="login-box">
-		<div class="top-login"></div>
-		<div class="mid-login">
-			<form action="" method="post" >
-				<div class="form">
-						<div class="post-form-row">
-							<label>Username</label>
-							<input type="text" name="username" value="" class="inputBox2"/><!--narrow input field-->
-						</div>	
-						<div class="post-form-row">
-		
-							<label>Password</label>
-							<input type="password" name="password" value="" class="inputBox2"/><!--narrow input field-->
-						</div>	
-						
-						<div class="line"></div>
-						
-						<div class="post-form-row">
-							<label>Or Login using Open ID</label>
-							<input type="text" name="openID" value="" class="inputBox2"/><!--narrow input field-->
-						</div>	
-						
-				</div>
-				<div class="login-btn">
-					<input type="image" src="images/btn-signon.gif" />
-				</div>
-			</form>
-		</div>
-		<div class="bot-login"></div>
-	</div><!--login-box-->
-	
-	<div class="box-right">
-		<!--<div class="headingl"></div>
-		<h3>Heading Section A</h3>
-		<div class="headingr"></div>-->
-		<h3><a href="">Heading Section A</a></h3>
-		Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at odio vitae justo ultricies porttitor sit amet nec justo. Nam dictum sodales purus. 
-	</div>
-	
-	<div class="box-right">
-		<h3><a href="">Heading Section B</a></h3>
-		Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at odio vitae justo ultricies porttitor sit amet nec justo. Nam dictum sodales purus. 
-	</div>
-	
-	<div class="box-right">
-		<h3><a href="">Heading Section C</a></h3>
-		Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at odio vitae justo ultricies porttitor sit amet nec justo. Nam dictum sodales purus. 
-	</div>
-	
-</div>
-
-
-
-</div><!--// ENDS CONTAINER -->
-</div><!--// ENDS CONTAINER-BG -->
-
-
-
-
-
-<div id="footer">
-      <div class="ftr-links">			
-				<a href="index.html">home</a> |
-				<a href="services.html">services</a> |
-				<a href="mission.html">mission</a> |
-				<br />
-			
-			Copyright &copy; 2009 ESME<br />	
-			
-			</div>
-			
-			
-</div>
-</body>
-</html>
\ No newline at end of file
+<lift:UserSnip.loggedIn>
+    <logged:in>
+        <lift:surround with="message" at="content"/>
+    </logged:in>
+    <logged:out>
+        <lift:surround with="default" at="content">
+          	<!---BLUE HEADER-->
+	<div id="container-2nd-level-bg">
+		<div id="container-2nd-level">
+		       <h1><span>Getting Started on ESME</span></h1>
+		       Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec interdum mauris eu est faucibus laoreet. Maecenas pulvinar ornare eros non hendrerit. Aliquam rutrum, mauris ut consectetur placerat, magna neque pulvinar eros, sed pretium purus turpis fermentum ligula. Vestibulum erat elit, dictum non hendrerit in, aliquet posuere augue. Aliquam mauris dolor, luctus sit amet luctus vitae, viverra tempor est. Donec metus lorem, hendrerit in venenatis ac.
+			  		<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec interdum mauris eu est faucibus laoreet. </p>
+		</div><!--container-2nd-level-->
+	</div><!--container-2nd-level-bg-->
+	<!--END BLUE HEADER-->	
+	
+	<script src="/scripts/display_messages_start.js" type="text/javascript"/>
+	 <lift:comet type="SinglePublicTimeline"/>
+
+	<div class="gray-box">
+		<h1>Now on ESME</h1>
+		<div class="avatar"><img src="images/avatar1.jpg" alt="" /></div>
+		<div class="update">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam mauris velit, feugiat quis varius ac, malesuada in lectus. Nunc suscipit condimentum eros vitae lacinia. 
+			<div class="tag"><a href="">mac</a>, <a href="">design</a>, <a href="">graphics</a>, <a href="">photoshop</a>, <a href="">cs3</a></div>	
+			<div class="info"><a href="">Nickname</a> 3 hours ago</div>
+		</div>
+	</div><!--gray-box-->
+	
+	<div class="tags-box">
+		<a href="" class="style5">software</a> 
+		<a href="" class="style5">teaching</a> 
+		<a href="" class="style3">Technology</a> 
+		<a href="" class="style3">movies</a> 
+		<a href="" class="style2">twitter</a> 
+		<a href="" class="style1">ebook</a> 
+		<a href="" class="style4">web design</a> 
+		<a href="" class="style4">wordpress</a> 
+		<a href="" class="style1">work from home</a> 
+		<a href="" class="style2">illustrator</a> 
+		<a href="" class="style5">PHP</a> 
+		<a href="" class="style4">AJAX</a> 
+		<a href="" class="style1">wiki</a> 
+		<a href="" class="style3">virtual assistant</a> 
+		<a href="" class="style2">blogging</a> 
+		<a href="" class="style2">movies</a> 
+		<a href="" class="style5">youtube</a> 
+		<a href="" class="style3">free stuff</a> 
+		<a href="" class="style4">tutorials</a> 
+		<a href="" class="style1">articles</a> 
+		<a href="" class="style4">jQuery samples</a>
+	</div>
+        </lift:surround>
+    </logged:out>
+</lift:UserSnip.loggedIn>
\ No newline at end of file

Added: incubator/esme/branches/new-ui/src/main/webapp/scripts/display_messages.js
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/scripts/display_messages.js?rev=893072&view=auto
==============================================================================
--- incubator/esme/branches/new-ui/src/main/webapp/scripts/display_messages.js (added)
+++ incubator/esme/branches/new-ui/src/main/webapp/scripts/display_messages.js Tue Dec 22 05:29:49 2009
@@ -0,0 +1,115 @@
+// <![CDATA[
+/*
+ * displayMessages called by lift:comet, type="Timeline" and type="PublicTimeline"
+ */
+
+function msgDateCompare(msg1, msg2)
+{
+  return parseInt(msg1.message.when) - parseInt(msg2.message.when);
+}
+
+function displayMessages(msgArray, elementId)
+{
+  // Select the first element in table id="timeline_messages"
+  //  with id="message" as the message template
+  if (msgTemplate == null) {
+    //                                    var msgTemplate = jQuery('span.'+spanId+' message:first');
+    var msgTemplate = jQuery('#'+elementId+' #message:first');
+    var tagTemplate = msgTemplate.find('#tag:first');
+    var msgInsertPt = jQuery('#'+elementId);
+
+    // Now we have the template, make the existing instances invisible
+    jQuery('#'+elementId+' *[id=message]').hide();
+  }
+
+  // Sort the messages into date order
+  msgArray.sort(msgDateCompare);
+
+  for (var msgIndex in msgArray)
+  {
+    // Marshall the data from the Comet-supplied message
+    var cometMsg = msgArray[msgIndex].message;
+    var cometReason = msgArray[msgIndex].reason;
+    var cometResent = msgArray[msgIndex].resent;
+    var msgId = "message_"+cometMsg.id;
+
+    // Only do this if the message is not already in the table
+    if (jQuery('#'+elementId+' #'+msgId).size() == 0)
+    {
+      var msgAuthor = cometMsg.author;
+      var msgBody = jQuery(cometMsg.text).find('body').html();
+      var msgDateObj = new Date(parseInt(cometMsg.when));
+      var msgDateStr = 'on ' + msgDateObj.toLocaleDateString() +
+        ' ' + msgDateObj.toLocaleTimeString();
+      var msgPool = '';
+      if (cometMsg.pool) msgPool = 'in pool ' + cometMsg.pool.name;
+      var msgSource = cometMsg.source;
+      var msgConversation = cometMsg.conversation;
+      var msgReason = ""
+      for (r in cometReason) {
+        if (r == "resent_from")
+          msgReason = "resent by " + cometReason[r].nickname;
+        else
+          msgReason = "caused by " + r;
+        break
+      }
+      var msgTags = jQuery(cometMsg.text).find('tags > tag').get();
+      for (var tagIndex=0; tagIndex < msgTags.length; tagIndex++) {
+        // Replace each tag element with the plain tag text
+        msgTags[tagIndex] = jQuery(msgTags[tagIndex]).attr('name');
+      }
+
+      // Put the marshalled data into a copy of the template
+      var newMsg = msgTemplate.clone(true).attr('id',msgId);
+
+      newMsg.find('#author').text(msgAuthor.nickname);
+     
+      // Dealing with users with no avatars
+      if (!msgAuthor.imageurl)
+      	msgAuthor.imageurl="/images/avatar.jpg"
+      	
+      var avatar = newMsg.find('#avatar')
+      .attr('src', msgAuthor.imageurl)
+      .attr('alt',msgAuthor.firstname + ' ' + msgAuthor.lastname);
+
+      newMsg.find('#body').html(msgBody);
+      newMsg.find('#pool').text(msgPool);
+      newMsg.find('#source').text(msgSource);
+      newMsg.find('#reason').text(msgReason);
+      newMsg.find('#when').text(msgDateStr);
+      var id = cometMsg.id;
+      var resendButton = newMsg.find('#resend');
+      if (cometResent) {
+        resendButton.css("display", "none");
+      } else {
+        resendButton.attr('id', 'resend_' + id).
+          attr('onclick', 'javascript:resend_msg(' + id + ');' +
+                                     'clearResend("resend_' + id + '")');
+      }
+      newMsg.find('#reply').attr('href',
+        "javascript:setReplyTo(" + id + ", '"+ msgBody + "')");
+      var conversation = newMsg.find('#conversation');
+      if (msgConversation != 0) {
+        conversation.attr('href',
+          '/conversation/' + msgConversation);
+      } else {
+        conversation.css("display", "none");
+      }
+      for (var tagIndex=0; tagIndex < msgTags.length; tagIndex++) {
+        var newTag = tagTemplate.clone(true).attr('id',msgTags[tagIndex]);
+        newTag.find('a')
+        .attr('href','tag/'+msgTags[tagIndex])
+        .text(msgTags[tagIndex]);
+        newTag.insertBefore(newMsg.find('#tag:first'));
+      }
+
+      // Remove any old tags from the template
+      newMsg.find('*[id=tag]').remove();
+
+      // Insert the updated copy of the message into the page
+      newMsg.prependTo(msgInsertPt).show();
+    }
+  }
+}
+// ]]>
+

Added: incubator/esme/branches/new-ui/src/main/webapp/signup.html
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/signup.html?rev=893072&view=auto
==============================================================================
--- incubator/esme/branches/new-ui/src/main/webapp/signup.html (added)
+++ incubator/esme/branches/new-ui/src/main/webapp/signup.html Tue Dec 22 05:29:49 2009
@@ -0,0 +1,55 @@
+<lift:surround with="default" at="login">
+    <div id="signup-box">
+     <div id="mid-signup">
+        <h2><label><lift:loc>ui_sign_up_intro</lift:loc> </label></h2>
+             <lift:signup form="post">
+                <div class="form">
+                        <div>
+                            <signup:credentials/>
+                        </div>
+                        <div>
+                            <div class="post-form-row">
+                                <label for="nickname">
+                                    <lift:loc>ui_sign_up_nickname</lift:loc>
+                                    <br/>
+                                    <signup:nickname class="inputBox2"/>
+                                </label>
+                            </div>
+                            <label for="firstname">
+                                <lift:loc>ui_sign_up_firstname</lift:loc>
+                                <br/>
+                                <signup:firstname/>
+                            </label>
+                            <br/>
+                            <label for="lastname">
+                                <lift:loc>ui_sign_up_lastname</lift:loc>
+                                <br/>
+                                <signup:lastname/>
+                            </label>
+                            <br/>
+                            <label for="image_url">
+                                <lift:loc>ui_sign_up_image_url</lift:loc>
+                                <br/>
+                                <signup:image_url/>
+                            </label>
+                            <br/>
+                            <label for="timezone">
+                                <lift:loc>ui_sign_up_timezone</lift:loc>
+                                <br/>
+                                <signup:timezone/>
+                            </label>
+                            <br/>
+                            <label for="locale">
+                                <lift:loc>ui_sign_up_locale</lift:loc>
+                                <br/>
+                                <signup:locale/>
+                            </label>
+                        </div>
+                </div>
+                <label for="submit">
+                    <signup:submit id="submit"/>
+                </label>
+            </lift:signup>
+        </div>
+    </div>
+</lift:surround>
\ No newline at end of file

Added: incubator/esme/branches/new-ui/src/main/webapp/templates-hidden/default.html
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/templates-hidden/default.html?rev=893072&view=auto
==============================================================================
--- incubator/esme/branches/new-ui/src/main/webapp/templates-hidden/default.html (added)
+++ incubator/esme/branches/new-ui/src/main/webapp/templates-hidden/default.html Tue Dec 22 05:29:49 2009
@@ -0,0 +1,47 @@
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:lift="http://liftweb.net/" xml:lang="eng">
+    <head>
+        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
+        <title><lift:loc>ui_default_title</lift:loc></title>
+        <meta http-equiv="Content-Language" content="en-US" />
+        <meta http-equiv="Content-Script-Type" content="text/javascript" />
+        <meta http-equiv="Content-Style-Type" content="text/css" />
+        <meta http-equiv="imagetoolbar" content="no" />
+        <link rel="stylesheet" href="src/style.css" type="text/css" media="screen" />
+        <script id="jquery" src="/classpath/jquery.js" type="text/javascript"/><script id="json" src="/classpath/json.js" type="text/javascript"/>
+    </head>
+    <body id="home">
+        <div id="container-bg">
+            <div class="container">
+                <div id="header">
+                    <div id="logo">
+                        <h1><a href="/">ESME</a></h1>
+                    </div>
+                    <div id="top-menu">
+                        <lift:Menu.item name="sign_up">
+                       <img src="images/btn-signup.gif" alt="" />
+                    </lift:Menu.item>
+                    </div>
+                </div>
+                <!--// ENDS HEADER -->
+                <div id="left">
+                   <lift:bind name="content" />
+                </div><!--left-->
+                <div id="right">
+                <lift:bind name="login">
+                  <lift:UserSnip.loginForm/>
+                </lift:bind>
+                </div><!--right-->
+           </div><!--// ENDS CONTAINER -->
+        </div><!--// ENDS CONTAINER-BG -->
+        <div class="footer">
+            <div class="ftr-links">			
+				<a href="index.html">home</a> |
+				<a href="services.html">services</a> |
+				<a href="mission.html">mission</a> |
+				<br />
+                <lift:loc>ui_default_footer</lift:loc>
+          <br />
+         </div> 
+        </div>
+    </body>
+</html>

Added: incubator/esme/branches/new-ui/src/main/webapp/templates-hidden/message.html
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/templates-hidden/message.html?rev=893072&view=auto
==============================================================================
--- incubator/esme/branches/new-ui/src/main/webapp/templates-hidden/message.html (added)
+++ incubator/esme/branches/new-ui/src/main/webapp/templates-hidden/message.html Tue Dec 22 05:29:49 2009
@@ -0,0 +1,253 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+        <title><lift:loc>ui_default_title</lift:loc></title>
+        <meta http-equiv="Content-Language" content="en-US" />
+        <meta http-equiv="Content-Script-Type" content="text/javascript" />
+        <meta http-equiv="Content-Style-Type" content="text/css" />
+        <meta http-equiv="imagetoolbar" content="no" />
+        <meta name="keywords" content="ESME" lang="en-US" />
+        <meta name="description" content="ESME" lang="en-US" />
+        <meta name="copyright" content="ESME" lang="en-US" />
+        <meta name="generator" content="" lang="en-US" />
+        <meta name="author" content="ESME Designed by Joy Reyes" lang="en-US" />
+        <meta name="Robots" content="index,follow,noodp" />
+        <link rel="stylesheet" href="src/style.css" type="text/css" media="screen" />
+        <script id="jquery" src="/classpath/jquery.js" type="text/javascript"/><script id="json" src="/classpath/json.js" type="text/javascript"/><script src="/scripts/display_messages.js" type="text/javascript"/>
+    </head>
+    <body id="back">
+        <div id="container-bg">
+            <div id="container">
+                <div id="header">
+                    <div id="logo">
+                        <h1><a href="/">ESME</a></h1>
+                    </div>
+                    <div id="top-menu">
+                        <ul>
+                            <li>
+                                <a href="/">Public Timeline</a>
+                                | 
+                            </li>
+                            <li>
+                                <a href="">Settings</a>
+                                | 
+                            </li>
+                        </ul>
+                        <lift:Menu.item name="logout">
+                           <img src="images/btn-signout.gif" alt="" />
+                         </lift:Menu.item>
+                    </div>
+                </div><!--// ENDS HEADER -->
+                <div id="left">
+                    <div id="back-header">
+                        <!---UPDATE BOX-->
+                        <div class="container-update">
+                            <h3><lift:loc>ui_messages_message_label_message_request</lift:loc></h3>
+                            <form action="" method="post">
+                                <div id="form-update">
+                                    <div class="post-form-row">
+                                        <label>
+                                            Share with
+                                        </label>
+                                        <select name="access_pool" class="inputBox2">
+                                            <option id="0"><lift:loc>ui_messages_message_label_message_pool_public</lift:loc></option>
+                                            <lift:UserSnip.accessPools/>
+                                        </select>
+                                    </div>
+                                    <div class="row clear" style="display: none">
+                                        <input id="tagdude" style="width: 90%"/>
+                                    </div>
+                                    <div class="post-form-row">
+                                        <textarea class="inputBox2" id="textdude" rows="5" cols="80%"></textarea>
+                                        <div class="update-btn">
+                                            <input type="image" onclick="javascript:post_msg();" src="images/btn-update.gif" />
+                                        </div>
+                                    </div>
+                                    <script>
+                                        // <![CDATA[
+                                        var currentConvNumber = 0;
+                                        
+                                        function setReplyTo(id, text){
+                                            currentConvNumber = id;
+                                            //document.getElementById('reply-to-div').style.display = "block";
+                                            jQuery('#reply-to-span').html(text);
+                                        }
+                                        
+                                        function clearReplyTo(){
+                                            currentConvNumber = 0;
+                                            // document.getElementById('reply-to-div').style.display = "none";
+                                        }
+                                        
+                                        function clearResend(id){
+                                            document.getElementById(id).style.display = "none"
+                                        }
+                                        
+                                        // ]]>
+                                    </script>
+                                    <lift:UserSnip.postScript/>
+                                </div>
+                            </form>
+                        </div><!--END UPDATE BOX-->
+                    </div><lift:UserSnip.resendScript/>
+                    <!--updates-box
+                    <lift:comet type="Timeline"/> -->
+                    <div class="separator">
+                    </div>
+                    <div id="personal_timeline_messages">
+                        <div class="updates-box">
+                            <div class="avatar">
+                                <img src="images/avatar1.jpg" alt="" />
+                            </div>
+                            <div class="update2">
+                                <div class="author">
+                                </div>
+                                <p id="body">
+                                Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam mauris velit, feugiat quis varius ac, malesuada in lectus. Nunc suscipit condimentum eros vitae lacinia. 
+                                </p>
+                                in pool <div class="pool"></div><div id="when"> </div>
+                                <div class="actions">
+                                    <a href="#"><lift:loc>ui_messages_message_label_reply</lift:loc></a>
+                                    | <a href=""><lift:loc>ui_messages_message_label_resend</lift:loc></a>
+                                    | <a href="" id="conversation"><lift:loc>ui_messages_message_label_conversation</lift:loc></a>
+                                </div>
+                            </div>
+                        </div>
+                    </div>
+                    <!--updates-box-->
+                    <div class="separator">
+                    </div>
+                    <div class="updates-box">
+                        <div class="avatar">
+                            <img src="images/avatar1.jpg" alt="" />
+                        </div>
+                        <div class="update2">
+                            <div class="info2">
+                                <a href="">Nickname</a>
+                            </div>
+                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam mauris velit, feugiat quis varius ac, malesuada in lectus. Nunc suscipit condimentum eros vitae lacinia. 
+                            <div class="time">
+                                in pool default 3 hours ago
+                            </div>
+                            <div class="actions">
+                                <a href="">reply</a>
+                                | <a href="">resend</a>
+                                | <a href="">conversation</a>
+                            </div>
+                        </div>
+                    </div>
+                    <!--updates-box-->
+                    <div class="separator">
+                    </div>
+                    <div class="updates-box">
+                        <div class="avatar">
+                            <img src="images/avatar1.jpg" alt="" />
+                        </div>
+                        <div class="update2">
+                            <div class="info2">
+                                <a href="">Nickname</a>
+                            </div>
+                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam mauris velit, feugiat quis varius ac, malesuada in lectus. Nunc suscipit condimentum eros vitae lacinia. 
+                            <div class="time">
+                                in pool default 3 hours ago
+                            </div>
+                            <div class="actions">
+                                <a href="">reply</a>
+                                | <a href="">resend</a>
+                                | <a href="">conversation</a>
+                            </div>
+                        </div>
+                    </div>
+                    <!--updates-box-->
+                    <div class="separator">
+                    </div>
+                </div>
+                <!--left-->
+                <div id="right">
+                    <div class="box-right-back">
+                        <div class="avatar">
+                            <img src="images/avatar2.gif" alt="" />
+                        </div><strong><lift:loc>ui_messages_message_label_welcome</lift:loc></strong>
+                        <div class="info4">
+                            <a href=""><span class="name"><lift:UserSnip.name/></span></a>
+                        </div>
+                        <ul class="main-links">
+                            <li>
+                                <lift:Menu.item name="list_users"/>
+                            </li>
+                            <li>
+                                <lift:Menu.item name="trackMgt"/>
+                            </li>
+                            <li>
+                                <lift:Menu.item name="actionMgt"/>
+                            </li>
+                            <li>
+                                <lift:Menu.item name="authToken"/>
+                            </li>
+                            <li>
+                                <lift:Menu.item name="accessPools"/>
+                            </li>
+                            <li>
+                                <lift:Menu.item name="streams"/>
+                            </li>
+                        </ul><!--search form-->
+                        <form action="/info_view/search" method="post">
+                            <div id="search">
+                                <div class="searchBox">
+                                    <input type="text" class="inputBox" name="term" value=""/>
+                                </div>
+                                <div class="searchButton">
+                                    <input type="image" onclick="javascript:form.submit();" src="images/btn-search.gif" style="padding:0;"/>
+                                </div>
+                            </div>
+                        </form><!--search form--><h3><a href="">Tags</a></h3>
+                        <div class="right-content">
+                            <a href="" class="style5">software</a>
+                            <a href="" class="style5">teaching</a>
+                            <a href="" class="style3">Technology</a>
+                            <a href="" class="style3">movies</a>
+                            <a href="" class="style2">twitter</a>
+                            <a href="" class="style1">ebook</a>
+                            <a href="" class="style4">web design</a>
+                            <a href="" class="style4">wordpress</a>
+                            <a href="" class="style1">work from home</a>
+                            <a href="" class="style2">illustrator</a>
+                            <a href="" class="style5">PHP</a>
+                            <a href="" class="style4">AJAX</a>
+                            <a href="" class="style1">wiki</a>
+                            <a href="" class="style3">virtual assistant</a>
+                            <a href="" class="style2">blogging</a>
+                            <a href="" class="style2">movies</a>
+                            <a href="" class="style5">youtube</a>
+                            <a href="" class="style3">free stuff</a>
+                            <a href="" class="style4">tutorials</a>
+                            <a href="" class="style1">articles</a>
+                            <a href="" class="style4">jQuery samples</a>
+                        </div>
+                        <h3><a href="">Popular Messages</a></h3>
+                        <div class="right-content">
+                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at odio vitae justo ultricies porttitor sit amet nec justo. Nam dictum sodales purus. 
+                        </div>
+                        <h3><a href="">Popular Links</a></h3>
+                        <div class="right-content">
+                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at odio vitae justo ultricies porttitor sit amet nec justo. Nam dictum sodales purus. 
+                        </div>
+                    </div>
+                </div>
+            </div>
+            <!--// ENDS CONTAINER -->
+        </div>
+        <!--// ENDS CONTAINER-BG -->
+        <div id="footer">
+            <div class="ftr-links">
+                <a href="index.html">home</a>
+                |<a href="services.html">services</a>
+                |<a href="mission.html">mission</a>
+                |
+                <br/>
+                Copyright &copy; 2009 ESME
+                <br/>
+            </div>
+        </div>
+    </body>
+</html>

Added: incubator/esme/branches/new-ui/src/main/webapp/templates-hidden/openid_login_form.html
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/templates-hidden/openid_login_form.html?rev=893072&view=auto
==============================================================================
--- incubator/esme/branches/new-ui/src/main/webapp/templates-hidden/openid_login_form.html (added)
+++ incubator/esme/branches/new-ui/src/main/webapp/templates-hidden/openid_login_form.html Tue Dec 22 05:29:49 2009
@@ -0,0 +1,3 @@
+<form id="openid_submit" class="clear" method="post" action="/open_id/login">
+ 
+</form>
\ No newline at end of file

Added: incubator/esme/branches/new-ui/src/main/webapp/templates-hidden/upw_login_form.html
URL: http://svn.apache.org/viewvc/incubator/esme/branches/new-ui/src/main/webapp/templates-hidden/upw_login_form.html?rev=893072&view=auto
==============================================================================
--- incubator/esme/branches/new-ui/src/main/webapp/templates-hidden/upw_login_form.html (added)
+++ incubator/esme/branches/new-ui/src/main/webapp/templates-hidden/upw_login_form.html Tue Dec 22 05:29:49 2009
@@ -0,0 +1,46 @@
+
+	<div id="login-box">
+		<div class="top-login"></div>
+		<div class="mid-login">
+			<form action="/authentication/login" method="post" >
+				<div class="form">
+						<div class="post-form-row">
+							<label>Username</label>
+							<input type="text" name="username" value="" class="inputBox2"/><!--narrow input field-->
+						</div>	
+						<div class="post-form-row">
+		
+							<label>Password</label>
+							<input type="password" name="password" value="" class="inputBox2"/><!--narrow input field-->
+						</div>	
+						
+						<div class="line"></div>
+						
+						<div class="post-form-row">
+							<label>Or Login using Open ID</label>
+							<input type="text" name="openID" value="" class="inputBox2"/><!--narrow input field-->
+						</div>	
+						
+				</div>
+				<div class="login-btn">
+					<input type="image" src="images/btn-signon.gif" />
+					
+				</div>
+			</form>
+		</div>
+		<div class="bot-login"></div>
+		<div class="box-right">
+                        <!--<div class="headingl"></div>
+                        <h3>Heading Section A</h3>
+                        <div class="headingr"></div>--><h3><a href="">Heading Section A</a></h3>
+                        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at odio vitae justo ultricies porttitor sit amet nec justo. Nam dictum sodales purus. 
+                    </div>
+                    <div class="box-right">
+                        <h3><a href="">Heading Section B</a></h3>
+                        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at odio vitae justo ultricies porttitor sit amet nec justo. Nam dictum sodales purus. 
+                    </div>
+                    <div class="box-right">
+                        <h3><a href="">Heading Section C</a></h3>
+                        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at odio vitae justo ultricies porttitor sit amet nec justo. Nam dictum sodales purus. 
+                    </div>
+	</div><!--login-box-->
\ No newline at end of file