diff options
-rw-r--r-- | gentoobrowse/present/index.xml | 3 | ||||
-rw-r--r-- | gentoobrowse/xslt/home.xslt | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/gentoobrowse/present/index.xml b/gentoobrowse/present/index.xml index 5f5408b..64e62a7 100644 --- a/gentoobrowse/present/index.xml +++ b/gentoobrowse/present/index.xml @@ -4,6 +4,9 @@ <xi:include href="../views/newebuilds.xml" /> <xi:include href="../views/webcommon.xml" /> <project2:view name="newebuilds" source="newebuilds" rootname="newebuilds" recordname="ebuild" filter="syncCount"> + <project2:max name="lastsync"> + <value source="parent" depth="1" name="sync" /> + </project2:max> <project2:distinct name="syncs"> <value source="parent" depth="1" name="sync" /> </project2:distinct> diff --git a/gentoobrowse/xslt/home.xslt b/gentoobrowse/xslt/home.xslt index 70ec9b0..0e138db 100644 --- a/gentoobrowse/xslt/home.xslt +++ b/gentoobrowse/xslt/home.xslt @@ -12,7 +12,7 @@ <xsl:template name="header"> <h1>Newest ebuilds</h1> <p class="lead"> - <xsl:value-of select="count(/gentoo/newebuilds/ebuild[sync = /gentoo/newebuilds/syncs/value[1]])" /> + <xsl:value-of select="count(/gentoo/newebuilds/ebuild[sync = /gentoo/newebuilds/lastsync])" /> new ebuilds in today. </p> </xsl:template> |