summaryrefslogtreecommitdiff
path: root/gentoobrowse/browse.xslt
diff options
context:
space:
mode:
Diffstat (limited to 'gentoobrowse/browse.xslt')
-rw-r--r--gentoobrowse/browse.xslt26
1 files changed, 26 insertions, 0 deletions
diff --git a/gentoobrowse/browse.xslt b/gentoobrowse/browse.xslt
index db3f4f6..c356828 100644
--- a/gentoobrowse/browse.xslt
+++ b/gentoobrowse/browse.xslt
@@ -105,7 +105,10 @@
<xsl:apply-templates select="packageUrls" />
<xsl:apply-templates select="versions" />
<xsl:apply-templates select="deps" />
+ <xsl:apply-templates select="packageBugs" />
</xsl:template>
+
+ <!-- Package URLs -->
<xsl:template match="/gentoo/summary/package/packageUrls">
<div class="urls">
<xsl:apply-templates match="url" />
@@ -119,14 +122,37 @@
<xsl:value-of select="url" />
</a>
</xsl:template>
+
+ <!-- Package bugs -->
+ <xsl:template match="/gentoo/summary/package/packageBugs">
+ <h3>Open bugs</h3>
+ <ul>
+ <xsl:apply-templates match="bug" />
+ </ul>
+ </xsl:template>
+ <xsl:template match="/gentoo/summary/package/packageBugs/bug">
+ <li>
+ <a target="_blank">
+ <xsl:attribute name="href">http://bugs.gentoo.org/<xsl:value-of select="bugid" /></xsl:attribute>
+ <xsl:value-of select="summary" />
+ </a>
+ (<xsl:value-of select="bugid" />)
+ </li>
+ </xsl:template>
+
+ <!-- Version use flags -->
<xsl:template match="/gentoo/summary/package/versionUses/use">
<xsl:value-of select="use" />
<xsl:text> </xsl:text>
</xsl:template>
+
+ <!-- Version archs -->
<xsl:template match="/gentoo/summary/package/versionArchs/arch">
<xsl:value-of select="arch" />
<xsl:text> </xsl:text>
</xsl:template>
+
+ <!-- Package dependencies -->
<xsl:template match="/gentoo/summary/package/deps">
<h3>Dependencies</h3>
<ul>