| 1019 | | |
|---|
| 1020 | | <xsl:template match="sysStats" mode="showSysStats"> |
|---|
| 1021 | | <h2>System Statistics</h2> |
|---|
| 1022 | | |
|---|
| 1023 | | <p> |
|---|
| 1024 | | Stats collection: |
|---|
| 1025 | | </p> |
|---|
| 1026 | | <ul> |
|---|
| 1027 | | <li> |
|---|
| 1028 | | <a href="{$stats}&enable=yes">enable</a> | |
|---|
| 1029 | | <a href="{$stats}&disable=yes">disable</a> |
|---|
| 1030 | | </li> |
|---|
| 1031 | | <li><a href="{$stats}&fetch=yes">fetch statistics</a></li> |
|---|
| 1032 | | <li><a href="{$stats}&dump=yes">dump stats to log</a></li> |
|---|
| 1033 | | </ul> |
|---|
| 1034 | | <table id="statsTable" cellpadding="0"> |
|---|
| 1035 | | <xsl:for-each select="*"> |
|---|
| 1036 | | <xsl:choose> |
|---|
| 1037 | | <xsl:when test="name(.) = 'header'"> |
|---|
| 1038 | | <tr> |
|---|
| 1039 | | <th colspan="2"> |
|---|
| 1040 | | <xsl:value-of select="."/> |
|---|
| 1041 | | </th> |
|---|
| 1042 | | </tr> |
|---|
| 1043 | | </xsl:when> |
|---|
| 1044 | | <xsl:otherwise> |
|---|
| 1045 | | <tr> |
|---|
| 1046 | | <td class="label"> |
|---|
| 1047 | | <xsl:value-of select="label"/> |
|---|
| 1048 | | </td> |
|---|
| 1049 | | <td class="value"> |
|---|
| 1050 | | <xsl:value-of select="value"/> |
|---|
| 1051 | | </td> |
|---|
| 1052 | | </tr> |
|---|
| 1053 | | </xsl:otherwise> |
|---|
| 1054 | | </xsl:choose> |
|---|
| 1055 | | </xsl:for-each> |
|---|
| 1056 | | </table> |
|---|
| | 1020 | <xsl:template name="stats"> |
|---|
| | 1021 | <div id="stats"> |
|---|
| | 1022 | <h2>System Statistics</h2> |
|---|
| | 1023 | |
|---|
| | 1024 | <p> |
|---|
| | 1025 | Stats collection: |
|---|
| | 1026 | </p> |
|---|
| | 1027 | <ul> |
|---|
| | 1028 | <li> |
|---|
| | 1029 | <a href="{$stats}&enable=yes">enable</a> | |
|---|
| | 1030 | <a href="{$stats}&disable=yes">disable</a> |
|---|
| | 1031 | </li> |
|---|
| | 1032 | <li><a href="{$stats}&fetch=yes">fetch statistics</a></li> |
|---|
| | 1033 | <li><a href="{$stats}&dump=yes">dump stats to log</a></li> |
|---|
| | 1034 | </ul> |
|---|
| | 1035 | <table id="statsTable" cellpadding="0"> |
|---|
| | 1036 | <xsl:for-each select="/bedework/sysStats/*"> |
|---|
| | 1037 | <xsl:choose> |
|---|
| | 1038 | <xsl:when test="name(.) = 'header'"> |
|---|
| | 1039 | <tr> |
|---|
| | 1040 | <th colspan="2"> |
|---|
| | 1041 | <xsl:value-of select="."/> |
|---|
| | 1042 | </th> |
|---|
| | 1043 | </tr> |
|---|
| | 1044 | </xsl:when> |
|---|
| | 1045 | <xsl:otherwise> |
|---|
| | 1046 | <tr> |
|---|
| | 1047 | <td class="label"> |
|---|
| | 1048 | <xsl:value-of select="label"/> |
|---|
| | 1049 | </td> |
|---|
| | 1050 | <td class="value"> |
|---|
| | 1051 | <xsl:value-of select="value"/> |
|---|
| | 1052 | </td> |
|---|
| | 1053 | </tr> |
|---|
| | 1054 | </xsl:otherwise> |
|---|
| | 1055 | </xsl:choose> |
|---|
| | 1056 | </xsl:for-each> |
|---|
| | 1057 | </table> |
|---|
| | 1058 | </div> |
|---|