Update of /var/cvs/contributions/lucene/templates
In directory james.mmbase.org:/tmp/cvs-serv32265
Modified Files:
index.jspx
Log Message:
show also duration
See also: http://cvs.mmbase.org/viewcvs/contributions/lucene/templates
Index: index.jspx
===================================================================
RCS file: /var/cvs/contributions/lucene/templates/index.jspx,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -b -r1.28 -r1.29
--- index.jspx 14 Jan 2008 17:55:45 -0000 1.28
+++ index.jspx 29 Jan 2008 14:31:23 -0000 1.29
@@ -3,6 +3,7 @@
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:mm="http://www.mmbase.org/mmbase-taglib-2.0">
+ <jsp:directive.page buffer="2000kb" />
<jsp:output doctype-root-element="html" doctype-public="-//W3C//DTD XHTML
1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
<jsp:directive.include file="head.jspx" />
<mm:content type="application/xhtml+xml"
@@ -50,8 +51,8 @@
<th>full index</th>
</tr>
<mm:listfunction id="index" module="lucene" name="list">
- <tr>
<c:catch var="exception1">
+ <tr>
<td>
<mm:write />
<mm:function module="lucene" name="default" write="false">
@@ -79,6 +80,20 @@
<mm:function module="lucene" referids="index" name="last">
<mm:time format="yyyy-MM-dd HH:mm" />
</mm:function>
+ (
+ <mm:function module="lucene" referids="index"
name="lastduration">
+ <c:choose>
+ <c:when test="${_ eq -1}">
+ Not yet run
+ </c:when>
+ <c:otherwise>
+ <mm:write value="${_ / 1000}" vartype="integer">
+ <mm:time timezone="utc" format="HH:mm:ss" />
+ </mm:write>
+ </c:otherwise>
+ </c:choose>
+ </mm:function>
+ )
</td>
<td>
<mm:functioncontainer>
@@ -110,13 +125,10 @@
</mm:link>
</mm:booleanfunction>
</td>
- </c:catch>
</tr>
-
+ </c:catch>
<c:if test="${! empty exception1}">
- <tr>
- <td cols="1000">${exception1}</td>
- </tr>
+ ${exception1}<![CDATA[</td></tr>]]>
</c:if>
</mm:listfunction>
</table>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs