summaryrefslogtreecommitdiff
path: root/gentoobrowse/package.xslt
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-11-14 03:29:47 +0000
committerrandomdan <randomdan@localhost>2010-11-14 03:29:47 +0000
commit50fcdea9977a29ad690cbb444b990b2d8c1092ae (patch)
treeb65ebba8d07edfba0cb1ba93f616f6c462d84082 /gentoobrowse/package.xslt
parentRemove most uses of files table from website, data now in ebuilds table (diff)
downloadgentoobrowse-50fcdea9977a29ad690cbb444b990b2d8c1092ae.tar.bz2
gentoobrowse-50fcdea9977a29ad690cbb444b990b2d8c1092ae.tar.xz
gentoobrowse-50fcdea9977a29ad690cbb444b990b2d8c1092ae.zip
Populate and use new change logs table
Diffstat (limited to 'gentoobrowse/package.xslt')
-rw-r--r--gentoobrowse/package.xslt17
1 files changed, 10 insertions, 7 deletions
diff --git a/gentoobrowse/package.xslt b/gentoobrowse/package.xslt
index 5f0852d..37bf811 100644
--- a/gentoobrowse/package.xslt
+++ b/gentoobrowse/package.xslt
@@ -121,7 +121,7 @@
<xsl:if test="count(/gentoo/summary/package/maskdetails/mask) &gt; 0">
<h3 class="tabhandle"><a href="javascript:showTab('masks');">Masks</a></h3>
</xsl:if>
- <xsl:if test="count(/gentoo/summary/package/changelog/line) &gt; 0">
+ <xsl:if test="count(/gentoo/summary/package/changelog/entry) &gt; 0">
<h3 class="tabhandle"><a href="javascript:showTab('changelog');">Change log</a></h3>
</xsl:if>
</div>
@@ -173,13 +173,16 @@
<!-- Change log -->
<xsl:template match="/gentoo/summary/package/changelog">
- <xsl:if test="count(/gentoo/summary/package/changelog/line) &gt; 0">
- <pre class="tabhidden" id="changelog">
- <xsl:for-each select="line">
- <xsl:value-of select="content" /><xsl:text>
-</xsl:text>
+ <xsl:if test="count(/gentoo/summary/package/changelog/entry) &gt; 0">
+ <ul class="tabhidden" id="changelog">
+ <xsl:for-each select="entry">
+ <li><xsl:value-of select="substring-before(date, ' ')" /></li>
+ <ul>
+ <li><xsl:value-of select="person" /> &lt;<xsl:value-of select="email" />&gt;</li>
+ <li><xsl:value-of select="comment" /></li>
+ </ul>
</xsl:for-each>
- </pre>
+ </ul>
</xsl:if>
</xsl:template>