Skip to content

Commit

Permalink
bgcolor, cellpadding, cellspacing converted to css style in debug.ftl
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandr-m committed Jun 3, 2014
1 parent d0a6d6e commit 8953ae3
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions core/src/main/resources/template/simple/debug.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand Down

0 comments on commit 8953ae3

Please sign in to comment.