Permalink
Browse files

Move api-item class from widget method to widget method signature.

  • Loading branch information...
1 parent 9ac72cf commit f8fd844105863d984949bb3d8a7df2c9e19ee9bd @scottgonzalez scottgonzalez committed Sep 5, 2012
Showing with 14 additions and 10 deletions.
  1. +14 −10 entries2html-base.xsl
View
@@ -360,19 +360,23 @@
<xsl:for-each select="methods/method">
<xsl:sort select="@name"/>
<xsl:variable name="method-name" select="@name"/>
+ <xsl:variable name="method-position" select="position()"/>
<div id="method-{$method-name}">
- <xsl:attribute name="class">
- <xsl:text>api-item</xsl:text>
- <xsl:if test="position() = 1">
- <xsl:text> first-item</xsl:text>
- </xsl:if>
- </xsl:attribute>
<xsl:for-each select="signature | self::node()[count(signature) = 0]">
- <xsl:call-template name="widget-method-event">
- <xsl:with-param name="entry-name" select="$entry-name"/>
- <xsl:with-param name="method-name" select="$method-name"/>
- </xsl:call-template>
+ <div>
+ <xsl:attribute name="class">
+ <xsl:text>api-item</xsl:text>
+ <xsl:if test="$method-position = 1 and position() = 1">
+ <xsl:text> first-item</xsl:text>
+ </xsl:if>
+ </xsl:attribute>
+
+ <xsl:call-template name="widget-method-event">
+ <xsl:with-param name="entry-name" select="$entry-name"/>
+ <xsl:with-param name="method-name" select="$method-name"/>
+ </xsl:call-template>
+ </div>
</xsl:for-each>
</div>
</xsl:for-each>

0 comments on commit f8fd844

Please sign in to comment.