Bug Tracker

Show
Ignore:
Timestamp:
12/17/07 18:48:39 (1 year ago)
Author:
joern.zaefferer
Message:

added plugins (Plugins_API), improved presentation (thanks Glen! - also inspired by Ext API browser), added startdoc to header, removed quicksearch at top and for categorized, renamed it to filter for alphabetic

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tools/api-browser/style.xsl

    r4180 r4208  
    6969    </xsl:template> 
    7070     
     71    <xsl:template name="startdoc"> 
     72        <xsl:text> 
     73            <xsl:choose> 
     74                <xsl:when test="/docs/@startdoc='API'">jQuery Core</xsl:when> 
     75                <xsl:when test="/docs/@startdoc='UI'">jQuery UI</xsl:when> 
     76                <xsl:when test="/docs/@startdoc='Plugins_API'">jQuery Plugins</xsl:when> 
     77                <xsl:when test="/docs/@startdoc='Plugins/Validation'">jQuery Validation Plugin</xsl:when> 
     78                <xsl:otherwise><xsl:value-of select="/docs/@startdoc" /></xsl:otherwise> 
     79            </xsl:choose> 
     80        </xsl:text> 
     81    </xsl:template> 
     82     
    7183    <xsl:template name="printMethod"> 
    7284        <li> 
    7385            <a> 
    7486                <xsl:call-template name="href" /> 
    75                 <xsl:value-of select="@name" /> 
    76                 <xsl:if test="name(.) != 'property'"> 
     87                <xsl:if test="name(.) = 'selector'"> 
     88                    <xsl:value-of select="sample" /> 
     89                </xsl:if> 
     90                <xsl:if test="name(.) != 'selector'"> 
     91                    <xsl:value-of select="@name" /> 
     92                </xsl:if> 
     93                <xsl:if test="name(.) = 'function'"> 
    7794                    <xsl:text>(</xsl:text> 
    7895                    <xsl:for-each select="params"> 
     
    134151    </head> 
    135152    <body> 
    136         <h1><a href="http://jquery.com"><img src="images/jquery_logo.gif" alt="jQuery Logo" /></a></h1> 
    137         <div id="header"><xsl:value-of select="/docs/@version" /> API Browser <span>(<a href="jquery-api-browser.zip">Download</a>)</span></div> 
     153        <h1><a href="http://jquery.com"><img src="images/logo_jquery3.png" alt="jQuery Logo" /></a></h1> 
     154        <div id="header"><xsl:call-template name="startdoc"/> API <xsl:value-of select="/docs/@version" /><span> - <a href="jquery-api-browser.zip">Download</a></span></div> 
    138155        <div id="content"> 
    139156            <div id="nav"> 
    140                 <h2>Navigation</h2> 
    141157                <ul class="tabs-nav"> 
    142158                    <li><a href="#navCat">Category</a></li>