bgcolor, cellpadding, cellspacing converted to css style in debug.ftl
Project: http://git-wip-us.apache.org/repos/asf/struts/repo Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/8953ae3f Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/8953ae3f Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/8953ae3f Branch: refs/heads/master Commit: 8953ae3f24849b8f2db1ac3b45e846cc5f27c7a9 Parents: d0a6d6e Author: Aleksandr Mashchenko <[email protected]> Authored: Tue Jun 3 20:15:03 2014 +0300 Committer: Aleksandr Mashchenko <[email protected]> Committed: Tue Jun 3 20:15:03 2014 +0300 ---------------------------------------------------------------------- core/src/main/resources/template/simple/debug.ftl | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/struts/blob/8953ae3f/core/src/main/resources/template/simple/debug.ftl ---------------------------------------------------------------------- diff --git a/core/src/main/resources/template/simple/debug.ftl b/core/src/main/resources/template/simple/debug.ftl index 8b2db3d..17152bf 100644 --- a/core/src/main/resources/template/simple/debug.ftl +++ b/core/src/main/resources/template/simple/debug.ftl @@ -35,6 +35,13 @@ } --> </script> + +<style type="text/css"> +<!-- + table.debugTable {border-collapse:collapse; border-spacing:0; background-color:#DDDDDD;} + table.debugTable th, table.debugTable td {padding:2px;} +--> +</style> <p /> <a href="#" onclick="toggleDebug('<#if parameters.id?if_exists != "">${parameters.id?html}<#else>debug</#if>');return false;">[Debug]</a> @@ -43,7 +50,7 @@ <p /> <h3>Value Stack Contents</h3> -<table border="0" cellpadding="2" cellspacing="0" bgcolor="#DDDDDD"> +<table class="debugTable"> <tr><th>Object</th><th>Property Name</th><th>Property Value</th></tr> <#assign index=1> @@ -54,8 +61,8 @@ <#assign renderRow=false> <#list stackObject.value.keySet() as propertyName> <#if renderRow==true></tr><tr><#else> <#assign renderRow=false> </#if> - <td bgcolor="<#if (index % 2) == 0>#BBBBBB<#else>#CCCCCC</#if>">${propertyName}</td> - <td bgcolor="<#if (index % 2) == 0>#BBBBBB<#else>#CCCCCC</#if>"><#if stackObject.value.get(propertyName)??>${stackObject.value.get(propertyName).toString()?html}<#else>null</#if></td> + <td style="background-color:<#if (index % 2) == 0>#BBBBBB<#else>#CCCCCC</#if>;">${propertyName}</td> + <td style="background-color:<#if (index % 2) == 0>#BBBBBB<#else>#CCCCCC</#if>;"><#if stackObject.value.get(propertyName)??>${stackObject.value.get(propertyName).toString()?html}<#else>null</#if></td> </tr> <#assign index= index + 1> </#list> @@ -65,14 +72,14 @@ <h3>Stack Context</h3> <i>These items are available using the #key notation</i> -<table border="0" cellpadding="2" cellspacing="0" bgcolor="#DDDDDD"> +<table class="debugTable"> <tr> <th>Key</th><th>Value</th> </tr> <#assign index=1> <#list stack.context.keySet() as contextKey> - <tr bgcolor="<#if (index % 2) == 0>#BBBBBB<#else>#CCCCCC</#if>"> + <tr style="background-color:<#if (index % 2) == 0>#BBBBBB<#else>#CCCCCC</#if>;"> <td>${contextKey}</td> <td><#if stack.context.get(contextKey)??>${struts.toStringSafe(stack.context.get(contextKey))?html}<#else>null</#if></td> </tr>
