roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r465338 - /incubator/roller/trunk/web/WEB-INF/jsps/authoring/CommentManagement.jsp
Date Wed, 18 Oct 2006 18:57:23 GMT
Author: snoopdave
Date: Wed Oct 18 11:57:22 2006
New Revision: 465338

URL: http://svn.apache.org/viewvc?view=rev&rev=465338
Log:
Truncate display of comments longer than 3000 characters -- we might want to go a couple steps
further and put an upper limit on the size of each comment

Modified:
    incubator/roller/trunk/web/WEB-INF/jsps/authoring/CommentManagement.jsp

Modified: incubator/roller/trunk/web/WEB-INF/jsps/authoring/CommentManagement.jsp
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/WEB-INF/jsps/authoring/CommentManagement.jsp?view=diff&rev=465338&r1=465337&r2=465338
==============================================================================
--- incubator/roller/trunk/web/WEB-INF/jsps/authoring/CommentManagement.jsp (original)
+++ incubator/roller/trunk/web/WEB-INF/jsps/authoring/CommentManagement.jsp Wed Oct 18 11:57:22
2006
@@ -370,7 +370,11 @@
                     <%-- comment content --%>
                     <br />
                     <span class="details">
-                       <pre><str:wordWrap><c:out value="${comment.content}"
escapeXml="true" /></str:wordWrap></pre>
+                       <pre><str:wordWrap>
+                            <str:truncateNicely upper="3000" appendToEnd="...">
+                                <c:out value="${comment.content}" escapeXml="true" />
+                            </str:truncateNicely>
+                       </str:wordWrap></pre>
                     </span>
                     
                 </td>



Mime
View raw message