esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhir...@apache.org
Subject svn commit: r991471 - /incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala
Date Wed, 01 Sep 2010 08:43:09 GMT
Author: rhirsch
Date: Wed Sep  1 08:43:09 2010
New Revision: 991471

URL: http://svn.apache.org/viewvc?rev=991471&view=rev
Log:
[ESME-191] Truncate links in message display and add a mouseover that displays the full link

Modified:
    incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala

Modified: incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala?rev=991471&r1=991470&r2=991471&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala (original)
+++ incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala Wed Sep
 1 08:43:09 2010
@@ -393,7 +393,7 @@ class Message extends LongKeyedMapper[Me
         case e: Elem if e.label == "url" =>
           e.attribute("url").flatMap(url =>
             e.attribute("uniqueId").map(id =>
-              <xml:group> <a href={"/u/"+id} target="_blank">{url}</a>
</xml:group>)).
+              <xml:group> <a class="tiplelement" href={"/u/"+id} target="_blank"
title={url}>{url.toString.substring(0,20)}...</a> </xml:group>)).
           getOrElse(Text("") )
 
         case e: Elem if e.label == "em" =>



Mime
View raw message