incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1337391 - /sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/request/RequestHistoryConsolePlugin.java
Date Fri, 11 May 2012 21:45:28 GMT
Author: bdelacretaz
Date: Fri May 11 21:45:27 2012
New Revision: 1337391

URL: http://svn.apache.org/viewvc?rev=1337391&view=rev
Log:
SLING-2473 - display request number to show which are the most recent ones

Modified:
    sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/request/RequestHistoryConsolePlugin.java

Modified: sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/request/RequestHistoryConsolePlugin.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/request/RequestHistoryConsolePlugin.java?rev=1337391&r1=1337390&r2=1337391&view=diff
==============================================================================
--- sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/request/RequestHistoryConsolePlugin.java
(original)
+++ sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/request/RequestHistoryConsolePlugin.java
Fri May 11 21:45:27 2012
@@ -160,11 +160,14 @@ public class RequestHistoryConsolePlugin
             if (requests != null) {
                 synchronized (requests) {
                     for (RequestInfo info : requests.values()) {
+                        final String key = ResponseUtil.escapeXml(info.getKey());
                         final boolean isCurrent = info.getKey().equals(
                             currentRequestIndex);
                         final StringBuilder sb = new StringBuilder();
-                        sb.append("<a href='" + LABEL + "?index="
-                            + ResponseUtil.escapeXml(info.getKey()) + "'>");
+                        sb.append("<span style='white-space: pre; text-align:right; font-size:80%'>");
+                        sb.append(String.format("%1$#8s", key));
+                        sb.append("</span> ");
+                        sb.append("<a href='" + LABEL + "?index=" + key + "'>");
                         if (isCurrent) {
                             sb.append("<b>");
                         }



Mime
View raw message