summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2013-03-09 15:55:29 +0000
committerrandomdan <randomdan@localhost>2013-03-09 15:55:29 +0000
commit9bea4608fea28ad76b8c86951731b1a00711ea23 (patch)
treef13f6dea7e5cb9a096751ca0980e63ca24220ebd
parentReinstate package herd links and package tracking (diff)
downloadgentoobrowse-9bea4608fea28ad76b8c86951731b1a00711ea23.tar.bz2
gentoobrowse-9bea4608fea28ad76b8c86951731b1a00711ea23.tar.xz
gentoobrowse-9bea4608fea28ad76b8c86951731b1a00711ea23.zip
Fix new ebuilds today counter on the homepage
-rw-r--r--gentoobrowse/present/index.xml3
-rw-r--r--gentoobrowse/xslt/home.xslt2
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>