summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gentoobrowse/present/atom.xml8
-rw-r--r--gentoobrowse/xslt/atomebuilds.xslt6
2 files changed, 11 insertions, 3 deletions
diff --git a/gentoobrowse/present/atom.xml b/gentoobrowse/present/atom.xml
index fcb4fea..e487f89 100644
--- a/gentoobrowse/present/atom.xml
+++ b/gentoobrowse/present/atom.xml
@@ -1,10 +1,16 @@
<?xml version="1.0"?>
-<view name="atomebuilds" root="gentoo" contenttype="text/xml-xslt" style="xslt/atomebuilds.xslt" xmlns:xi="http://www.w3.org/2001/XInclude"
+<view name="atomebuilds" xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:project2="http://project2.randomdan.homeip.net">
<xi:include href="../views/newebuildsatom.xml" />
<project2:view name="atomebuilds" source="newebuilds" rootname="newebuilds" recordname="ebuild">
<parameters>
<username source="uri" index="1" />
</parameters>
+ <project2:max name="lastBuildDate">
+ <value source="parent" name="moddate" />
+ </project2:max>
</project2:view>
+ <project2:xml root="gentoo" style="xslt/atomebuilds.xslt" dateformat="%a, %d %b %Y %T UTC">
+ <project2:htmldocument />
+ </project2:xml>
</view>
diff --git a/gentoobrowse/xslt/atomebuilds.xslt b/gentoobrowse/xslt/atomebuilds.xslt
index b4c3595..708c38e 100644
--- a/gentoobrowse/xslt/atomebuilds.xslt
+++ b/gentoobrowse/xslt/atomebuilds.xslt
@@ -13,7 +13,9 @@
<link>http://gentoobrowse.randomdan.homeip.net/</link>
<description>Unofficial Gentoo package browser</description>
<language>en-gb</language>
- <lastBuildDate>Wed, 16 Jun 2010 14:52:43 GMT</lastBuildDate>
+ <lastBuildDate>
+ <xsl:value-of select="/gentoo/newebuilds/lastBuildDate/@custom" />
+ </lastBuildDate>
<copyright>Copyright: (C) Gentoo Foundation, Inc.</copyright>
<ttl>15</ttl>
<xsl:apply-templates select="/gentoo/newebuilds/ebuild" />
@@ -25,7 +27,7 @@
<description><xsl:value-of select="description" /></description>
<link>http://<xsl:value-of select="/gentoo/project2:environment/servername" />/package/<xsl:value-of select="catname" />/<xsl:value-of select="pkgname" /></link>
<guid isPermaLink="false">http://<xsl:value-of select="/gentoo/project2:environment/servername" />/package/<xsl:value-of select="catname" />/<xsl:value-of select="pkgname" />-<xsl:value-of select="version" /></guid>
- <pubDate><xsl:value-of select="translate(moddate,' ','T')" />Z</pubDate>
+ <pubDate><xsl:value-of select="moddate/@custom" /></pubDate>
<category>ebuild</category>
</item>
</xsl:template>