root/trunk/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/themes/bwclassicTheme/stats.xsl

Revision 2840 (checked in by bleibson, 6 months ago)

o add Jasig licensing info to header of source files
o in some cases, remove RPI copyright info.

Line 
1 <!--
2     Licensed to Jasig under one or more contributor license
3     agreements. See the NOTICE file distributed with this work
4     for additional information regarding copyright ownership.
5     Jasig licenses this file to you under the Apache License,
6     Version 2.0 (the "License"); you may not use this file
7     except in compliance with the License. You may obtain a
8     copy of the License at:
9    
10     http://www.apache.org/licenses/LICENSE-2.0
11    
12     Unless required by applicable law or agreed to in writing,
13     software distributed under the License is distributed on
14     an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15     KIND, either express or implied. See the License for the
16     specific language governing permissions and limitations
17     under the License.
18 -->
19 <xsl:stylesheet
20   version="1.0"
21   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
22   xmlns="http://www.w3.org/1999/xhtml">
23
24   <!--+++++++++++++++ System Stats ++++++++++++++++++++-->
25   <xsl:template name="stats">
26     <div id="stats">
27       <h2><xsl:copy-of select="$bwStr-Stat-SysStats"/></h2>
28
29       <p>
30         <xsl:copy-of select="$bwStr-Stat-StatsCollection"/>
31       </p>
32       <ul>
33         <li>
34           <a href="{$stats}&amp;enable=yes"><xsl:copy-of select="$bwStr-Stat-Enable"/></a> |
35           <a href="{$stats}&amp;disable=yes"><xsl:copy-of select="$bwStr-Stat-Disable"/></a>
36         </li>
37         <li><a href="{$stats}&amp;fetch=yes"><xsl:copy-of select="$bwStr-Stat-FetchStats"/></a></li>
38         <li><a href="{$stats}&amp;dump=yes"><xsl:copy-of select="$bwStr-Stat-DumpStats"/></a></li>
39       </ul>
40       <table id="statsTable" cellpadding="0">
41         <xsl:for-each select="/bedework/sysStats/*">
42           <xsl:choose>
43             <xsl:when test="name(.) = 'header'">
44               <tr>
45                 <th colspan="2">
46                   <xsl:value-of select="."/>
47                 </th>
48               </tr>
49             </xsl:when>
50             <xsl:otherwise>
51               <tr>
52                 <td class="label">
53                   <xsl:value-of select="label"/>
54                 </td>
55                 <td class="value">
56                   <xsl:value-of select="value"/>
57                 </td>
58               </tr>
59             </xsl:otherwise>
60           </xsl:choose>
61         </xsl:for-each>
62       </table>
63     </div>
64   </xsl:template>
65
66 </xsl:stylesheet>
Note: See TracBrowser for help on using the browser.