summaryrefslogtreecommitdiff
path: root/gentoobrowse/xslt
diff options
context:
space:
mode:
Diffstat (limited to 'gentoobrowse/xslt')
-rw-r--r--gentoobrowse/xslt/home.xslt11
1 files changed, 6 insertions, 5 deletions
diff --git a/gentoobrowse/xslt/home.xslt b/gentoobrowse/xslt/home.xslt
index b40b44b..3ec24bb 100644
--- a/gentoobrowse/xslt/home.xslt
+++ b/gentoobrowse/xslt/home.xslt
@@ -12,17 +12,18 @@
</xsl:template>
<xsl:template match="/gentoo/newebuilds">
<h2>Newest ebuilds</h2>
- <xsl:for-each select="/gentoo/syncs/sync">
+ <xsl:for-each select="syncs/value">
+ <xsl:sort select="position()" data-type="number" order="descending"/>
<section class="newebuilds">
<h3>
<time>
- <xsl:attribute name="datetime"><xsl:value-of select="synctime" /></xsl:attribute>
- <span class="syncdate"><xsl:value-of select="synctime/@date" /></span>
- <span class="synctime"><xsl:value-of select="synctime/@time" /></span>
+ <xsl:attribute name="datetime"><xsl:value-of select="current()" /></xsl:attribute>
+ <span class="syncdate"><xsl:value-of select="current()/@date" /></span>
+ <span class="synctime"><xsl:value-of select="current()/@time" /></span>
</time>
</h3>
<ul>
- <xsl:apply-templates select="/gentoo/newebuilds/ebuild[sync = current()/synctime]" />
+ <xsl:apply-templates select="/gentoo/newebuilds/ebuild[sync = current()]" />
</ul>
</section>
</xsl:for-each>