Changeset 2616

Show
Ignore:
Timestamp:
01/04/10 15:56:24
Author:
johnsa
Message:

web clients: add test for disabled flag

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webadmin/webapp/resources/default/default/default.xsl

    r2532 r2616  
    38293829      <xsl:attribute name="class"> 
    38303830        <xsl:choose> 
    3831           <xsl:when test="lastRefreshStatus &gt; 400">unknown</xsl:when> 
     3831          <xsl:when test="disabled = 'true'">unknown</xsl:when> 
     3832          <xsl:when test="lastRefreshStatus &gt;= 300">unknown</xsl:when> 
    38323833          <xsl:when test="isSubscription = 'true'"> 
    38333834            <xsl:choose> 
     
    38803881      <xsl:attribute name="class"> 
    38813882        <xsl:choose> 
    3882           <xsl:when test="lastRefreshStatus &gt; 400">unknown</xsl:when> 
     3883          <xsl:when test="disabled = 'true'">unknown</xsl:when> 
     3884          <xsl:when test="lastRefreshStatus &gt;= 300">unknown</xsl:when> 
    38833885          <xsl:when test="isSubscription = 'true'"><xsl:copy-of select="$bwStr-Cals-Alias"/></xsl:when> 
    38843886          <xsl:when test="calType = '0'"><xsl:copy-of select="$bwStr-Cals-Folder"/></xsl:when> 
     
    39033905      </xsl:if> 
    39043906      <a href="{$calendar-fetchForDisplay}&amp;calPath={$calPath}" title="display"> 
     3907        <xsl:if test="lastRefreshStatus &gt;= 300"> 
     3908          <xsl:attribute name="title"> 
     3909            <xsl:call-template name="httpStatusCodes"> 
     3910              <xsl:with-param name="code"><xsl:value-of  select="lastRefreshStatus"/></xsl:with-param> 
     3911            </xsl:call-template> 
     3912          </xsl:attribute> 
     3913        </xsl:if> 
    39053914        <xsl:value-of select="name"/> 
    39063915      </a> 
     
    48674876      <xsl:attribute name="class"> 
    48684877        <xsl:choose> 
    4869           <xsl:when test="lastRefreshStatus &gt; 400">unknown</xsl:when> 
     4878          <xsl:when test="disabled = 'true'">unknown</xsl:when> 
     4879          <xsl:when test="lastRefreshStatus &gt;= 300">unknown</xsl:when> 
    48704880          <xsl:when test="isSubscription = 'true'"> 
    48714881            <xsl:choose> 
     
    48994909        <xsl:otherwise> 
    49004910          <a href="{$subscriptions-fetchForUpdate}&amp;calPath={$calPath}" title="update"> 
     4911          <xsl:if test="lastRefreshStatus &gt;= 300"> 
     4912            <xsl:attribute name="title"> 
     4913              <xsl:call-template name="httpStatusCodes"> 
     4914                <xsl:with-param name="code"><xsl:value-of  select="lastRefreshStatus"/></xsl:with-param> 
     4915              </xsl:call-template> 
     4916            </xsl:attribute> 
     4917          </xsl:if> 
    49014918            <xsl:value-of select="name"/> 
    49024919          </a> 
     
    50975114      <xsl:attribute name="class"> 
    50985115        <xsl:choose> 
    5099           <xsl:when test="lastRefreshStatus &gt; 400">unknown</xsl:when> 
     5116          <xsl:when test="disabled = 'true'">unknown</xsl:when> 
     5117          <xsl:when test="lastRefreshStatus &gt; 300">unknown</xsl:when> 
    51005118          <xsl:when test="name='Trash'"><xsl:copy-of select="$bwStr-Cals-Trash"/></xsl:when> 
    51015119          <xsl:when test="isSubscription = 'true'"><xsl:copy-of select="$bwStr-Cals-Alias"/></xsl:when> 
  • trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r2538 r2616  
    47914791      <xsl:attribute name="class"> 
    47924792        <xsl:choose> 
    4793           <xsl:when test="lastRefreshStatus &gt; 400">unknown</xsl:when> 
     4793          <xsl:when test="disabled = 'true'">unknown</xsl:when> 
     4794          <xsl:when test="lastRefreshStatus &gt; 300">unknown</xsl:when> 
    47944795          <xsl:when test="/bedework/selectionState/selectionType = 'collections' 
    47954796                          and path = /bedework/selectionState/collection/virtualpath">selected</xsl:when> 
     
    48424843      <xsl:variable name="calPath" select="encodedPath"/> 
    48434844      <a href="{$setSelection}&amp;virtualPath={$virtualPath}&amp;calUrl={$calPath}"> 
    4844         <xsl:if test="lastRefreshStatus &gt; 400"> 
     4845        <xsl:if test="lastRefreshStatus &gt;= 300"> 
    48454846          <xsl:attribute name="title"> 
    48464847            <xsl:call-template name="httpStatusCodes"> 
     
    49284929      <xsl:attribute name="class"> 
    49294930        <xsl:choose> 
    4930           <xsl:when test="lastRefreshStatus &gt; 400">unknown</xsl:when> 
     4931          <xsl:when test="disabled = 'true'">unknown</xsl:when> 
     4932          <xsl:when test="lastRefreshStatus &gt;= 300">unknown</xsl:when> 
    49314933          <xsl:when test="isSubscription = 'true'"> 
    49324934            <xsl:choose> 
     
    53355337          </th> 
    53365338        </tr> 
    5337         <xsl:if test="lastRefreshStatus &gt; 400"> 
     5339        <xsl:if test="lastRefreshStatus &gt;= 300"> 
    53385340          <tr class="httpStatusMsg"> 
    53395341            <th><xsl:copy-of select="$bwStr-CuCa-HttpStatus"/></th>