Browse Source

HPCC-15647 Display first 12 chars of description in legacy ECLWatch

Signed-off-by: wangkx <kevin.wang@lexisnexis.com>
wangkx 9 years ago
parent
commit
ad61636abb
1 changed files with 8 additions and 1 deletions
  1. 8 1
      esp/eclwatch/ws_XSLT/dfu.xslt

+ 8 - 1
esp/eclwatch/ws_XSLT/dfu.xslt

@@ -706,7 +706,14 @@
               </xsl:choose>
             </td>
             <td>
-                    <xsl:value-of select="Description"/>
+                <xsl:choose>
+                    <xsl:when test="string-length(Description) > 12">
+                        <xsl:value-of select="substring(Description, 1, 12)"/>...
+                    </xsl:when>
+                    <xsl:otherwise>
+                        <xsl:value-of select="Description"/>
+                    </xsl:otherwise>
+                </xsl:choose>
             </td>
             <td>
                     <xsl:value-of select="Totalsize"/>