<p>
#set ($propsMap = $action.getProps())
<table width="90%" cellspacing="0" class="grid">
	<tr>
		<th colspan="2" width="90%">$action.getText("system.info")</th>
	</tr>
	#foreach ($key in $propsMap.keySet())
	<tr #if ($velocityCount%2 == 0) bgcolor="#f9f9f9" #end>
	    <td width="35%"><strong>$action.getText($key)</strong></td><td>$propsMap.get($key)</td>
    </tr>
	#end
</table>
<p>
#set ($memoryStats = $action.getMemoryStatistics())
<table width="90%" cellspacing="0" class="grid">
	<tr>
		<th colspan="2" width="90%">$action.getText("jvm.info")</th>
	</tr>
	<tr>
	    <td width="35%"><strong>$action.getText("total.memory")</strong></td><td>$memoryStats.totalMemoryInMegabytes MB</td>
    </tr>
	<tr bgcolor="#f9f9f9">
	    <td width="35%"><strong>$action.getText("free.memory")</strong></td><td>$memoryStats.freeMemoryInMegabytes MB</td>
    </tr>
	<tr>
	    <td width="35%"><strong>$action.getText("used.memory")</strong></td><td>$memoryStats.usedMemoryInMegabytes MB</td>
    </tr>
</table>
<!--Table for graph-->
<table width=90%>
<tr>
    <td width=40%><strong>$action.getText("memory.graph")</strong></td>
    <td>
        #bodytag( "Component" "theme='custom'" "template='memoryusagebar.vm'")
            #param ("used" $memoryStats.usedMemoryInMegabytes)
            #param ("total" $memoryStats.totalMemoryInMegabytes)
        #end
    </td>
</tr>
</table>
<p>
#set ($buildStats = $action.getBuildStats())
#set ($databaseStats = $action.getDatabaseInfo())
<table width="90%" cellspacing="0" class="grid">
	<tr>
		<th colspan="2" width="90%">$action.getText("runtime.info")</th>
	</tr>
	<tr>
	    <td width="35%"><strong>$action.getText("database.dialect")</strong></td><td>$!databaseStats.dialect</td>
    <tr  bgcolor="#f9f9f9">
        <td width="35%"><strong>$action.getText("database.connection.url")</strong></td><td>$!databaseStats.url</td>
    </tr>
    <tr>
        <td width="35%"><strong>$action.getText("database.driver.name")</strong></td><td>$!databaseStats.driverName</td>
    </tr>
    <tr bgcolor="#f9f9f9">
        <td width="35%"><strong>$action.getText("database.driver.version")</strong></td><td>$!databaseStats.driverVersion</td>
    </tr>
    <tr>
        <td width="35%"><strong>$action.getText("database.transaction.isolation")</strong></td><td>$!databaseStats.isolationLevel</td>
    </tr>
    <tr bgcolor="#f9f9f9">
        <td width="35%"><strong>$action.getText("database.name")</strong></td><td>$!databaseStats.name</td>
    </tr>
    <tr>
        <td width="35%"><strong>$action.getText("database.version")</strong></td><td>$!databaseStats.version</td>
    </tr>
    <tr bgcolor="#f9f9f9">
        <td width="35%"><strong>$action.getText("database.latency")</strong></td><td>#if ($databaseStats.exampleLatency == -1) $action.getText("not.available") #else $databaseStats.exampleLatency $action.getText("milliseconds.short") #end</td>
    </tr>
    <tr>
	    <td width="35%" bgcolor="#f9f9f9"><strong>$action.getText("application.server")</strong></td><td>$action.getServletContext().getServerInfo()</td>
    </tr>
    <tr bgcolor="#f9f9f9">
	    <td width="35%"><strong>$action.getText("servlet.version")</strong></td><td>$action.getServletContext().getMajorVersion().$action.getServletContext().getMinorVersion()</td>
    </tr>
    <tr>
	    <td width="35%"><strong>$action.getText("domain.name")</strong></td><td>$!generalUtil.globalSettings.baseUrl</td>
    </tr>
	#foreach ($key in $buildStats.keySet())
	<tr #if ($velocityCount%2 == 1) bgcolor="#f9f9f9" #end>
	    <td width="35%"><strong>$action.getText($key)</strong></td><td>$buildStats.get($key)</td>
    </tr>
	#end
</table>