summaryrefslogtreecommitdiff
path: root/gentoobrowse/emails/newpackageversions.xslt
diff options
context:
space:
mode:
Diffstat (limited to 'gentoobrowse/emails/newpackageversions.xslt')
-rw-r--r--gentoobrowse/emails/newpackageversions.xslt36
1 files changed, 25 insertions, 11 deletions
diff --git a/gentoobrowse/emails/newpackageversions.xslt b/gentoobrowse/emails/newpackageversions.xslt
index 3eb6c32..928edd5 100644
--- a/gentoobrowse/emails/newpackageversions.xslt
+++ b/gentoobrowse/emails/newpackageversions.xslt
@@ -8,26 +8,40 @@
</xsl:template>
<xsl:template name="content">
- <div class="span9">
- <xsl:for-each select="newpackageversions/pkgs/value">
- <div class="container">
- <xsl:variable name="versions" select="../../version[cname = fn:tokenize(current(),'/')[1] and pname = fn:tokenize(current(),'/')[2]]"/>
+ <div class="span3 bs-docs-sidebar">
+ <ul class="nav nav-list bs-docs-sidenav">
+ <xsl:for-each select="categories/category">
+ <li>
+ <a>
+ <xsl:attribute name="href">#<xsl:value-of select="cname" /></xsl:attribute>
+ <i class="icon-chevron-right"></i> <xsl:value-of select="cname" />
+ </a>
+ </li>
+ </xsl:for-each>
+ </ul>
+ </div>
+ <div class="span9">
+ <xsl:for-each select="categories//package">
+ <section>
+ <xsl:if test="count(preceding-sibling::package) = 0">
+ <xsl:attribute name="id"><xsl:value-of select="../../cname" /></xsl:attribute>
+ </xsl:if>
<h3>
- <xsl:value-of select="$versions[1]/cname"/> /
+ <xsl:value-of select="../../cname"/> /
<a>
- <xsl:attribute name="href">http://gentoobrowse.randomdan.homeip.net/package/<xsl:value-of select="$versions[1]/cname"/>/<xsl:value-of select="$versions[1]/pname"/></xsl:attribute>
- <xsl:value-of select="$versions[1]/pname"/>
+ <xsl:attribute name="href">http://gentoobrowse.randomdan.homeip.net/package/<xsl:value-of select="../../cname"/>/<xsl:value-of select="pname"/></xsl:attribute>
+ <xsl:value-of select="pname"/>
</a>
</h3>
<p>
- <xsl:value-of select="$versions[1]/description"/>
+ <xsl:value-of select="description"/>
</p>
<ul>
- <xsl:for-each select="$versions">
- <li><xsl:value-of select="cname"/>/<xsl:value-of select="pname"/>-<xsl:value-of select="version"/></li>
+ <xsl:for-each select="versions/version">
+ <li><xsl:value-of select="../../../../cname"/>/<xsl:value-of select="../../pname"/>-<xsl:value-of select="."/></li>
</xsl:for-each>
</ul>
- </div>
+ </section>
</xsl:for-each>
</div>
</xsl:template>