Changeset 197

Show
Ignore:
Timestamp:
02/24/06 11:15:12
Author:
johnsa
Message:

fixed up styles for public client stats support

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/default.xsl

    r196 r197  
    9191          </xsl:otherwise> 
    9292        </xsl:choose> 
     93        <link rel="stylesheet" type="text/css" href="{$resourcesRoot}/default/default/common.css" /> 
    9394        <link rel="stylesheet" type="text/css" media="print" href="{$resourcesRoot}/default/default/print.css" /> 
    9495        <link rel="icon" type="image/ico" href="{$resourcesRoot}/images/bedework.ico" /> 
     
    110111          <xsl:when test="/bedework/page='showSysStats'"> 
    111112            <!-- show system stats --> 
    112             <xsl:apply-templates select="/bedework/sysStats"/> 
     113            <xsl:call-template name="stats"/> 
    113114          </xsl:when> 
    114115          <xsl:when test="/bedework/page='calendars'"> 
     
    10171018 
    10181019  <!--+++++++++++++++ System Stats ++++++++++++++++++++--> 
    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}&amp;enable=yes">enable</a> | 
    1029         <a href="{$stats}&amp;disable=yes">disable</a> 
    1030       </li> 
    1031       <li><a href="{$stats}&amp;fetch=yes">fetch statistics</a></li> 
    1032       <li><a href="{$stats}&amp;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}&amp;enable=yes">enable</a> | 
     1030          <a href="{$stats}&amp;disable=yes">disable</a> 
     1031        </li> 
     1032        <li><a href="{$stats}&amp;fetch=yes">fetch statistics</a></li> 
     1033        <li><a href="{$stats}&amp;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> 
    10571059  </xsl:template> 
    10581060