summaryrefslogtreecommitdiff
path: root/gentoobrowse/xslt
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-07-07 18:43:25 +0000
committerrandomdan <randomdan@localhost>2011-07-07 18:43:25 +0000
commit6c64a495908b9dea279399824cac4f0a338e1b90 (patch)
tree0055d29d45cb093b6f0d66f0bc6c54ab29afd932 /gentoobrowse/xslt
parentEscape literal regex correctly (diff)
downloadgentoobrowse-6c64a495908b9dea279399824cac4f0a338e1b90.tar.bz2
gentoobrowse-6c64a495908b9dea279399824cac4f0a338e1b90.tar.xz
gentoobrowse-6c64a495908b9dea279399824cac4f0a338e1b90.zip
Improved home page
Diffstat (limited to 'gentoobrowse/xslt')
-rw-r--r--gentoobrowse/xslt/home.xslt26
1 files changed, 17 insertions, 9 deletions
diff --git a/gentoobrowse/xslt/home.xslt b/gentoobrowse/xslt/home.xslt
index df4e302..0b1584b 100644
--- a/gentoobrowse/xslt/home.xslt
+++ b/gentoobrowse/xslt/home.xslt
@@ -17,7 +17,10 @@
<table class="newebuilds">
<tr>
<xsl:for-each select="/gentoo/syncs/sync">
- <th><xsl:value-of select="synctime" /></th>
+ <th>
+ <span class="syncdate"><xsl:value-of select="substring-before(synctime, 'T')" /></span>
+ <span class="synctime"><xsl:value-of select="substring-after(synctime, 'T')" /></span>
+ </th>
</xsl:for-each>
</tr>
<tr>
@@ -33,14 +36,19 @@
</xsl:template>
<xsl:template match="/gentoo/newebuilds/ebuild">
<li>
- <a>
- <xsl:if test="tracked = 1">
- <xsl:attribute name="class">tracked</xsl:attribute>
+ <a>
+ <xsl:if test="tracked = 1">
+ <xsl:attribute name="class">tracked</xsl:attribute>
+ </xsl:if>
+ <xsl:attribute name="title">(updated <xsl:value-of select="moddate" />)</xsl:attribute>
+ <xsl:attribute name="href">/package/<xsl:value-of select="catname" />/<xsl:value-of select="pkgname" /></xsl:attribute>
+ <xsl:value-of select="catname" />/<xsl:value-of select="pkgname" />
+ </a>
+ v<xsl:value-of select="version" />
+ <xsl:if test="following-sibling::ebuild[1]/packageid != packageid">
+ <br/>
+ <xsl:value-of select="description" />
</xsl:if>
- <xsl:attribute name="title"><xsl:value-of select="description" /> (updated <xsl:value-of select="moddate" />)</xsl:attribute>
- <xsl:attribute name="href">/package/<xsl:value-of select="catname" />/<xsl:value-of select="pkgname" /></xsl:attribute>
- <xsl:value-of select="catname" />/<xsl:value-of select="pkgname" />-<xsl:value-of select="version" />
- </a>
- </li>
+ </li>
</xsl:template>
</xsl:stylesheet>