diff options
author | randomdan <randomdan@localhost> | 2014-04-12 00:20:07 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2014-04-12 00:20:07 +0000 |
commit | f5678211d00d05a4b545d360c2b7f17d1b4beea5 (patch) | |
tree | 5baef74c53b9bdb7a5619e3cb76128ce98dd94a9 /gentoobrowse/emails/newpackageversions.xslt | |
parent | New email template (diff) | |
download | gentoobrowse-f5678211d00d05a4b545d360c2b7f17d1b4beea5.tar.bz2 gentoobrowse-f5678211d00d05a4b545d360c2b7f17d1b4beea5.tar.xz gentoobrowse-f5678211d00d05a4b545d360c2b7f17d1b4beea5.zip |
Use the new autotree view to create nicer xml and thus a much less insane email template
Diffstat (limited to 'gentoobrowse/emails/newpackageversions.xslt')
-rw-r--r-- | gentoobrowse/emails/newpackageversions.xslt | 36 |
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> |