summaryrefslogtreecommitdiff
path: root/gentoobrowse/package.xslt
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-10-11 13:25:57 +0000
committerrandomdan <randomdan@localhost>2010-10-11 13:25:57 +0000
commitaaa2e34490f28370dc6f1f911a6df576b8cd38ad (patch)
treeecb6fdcdad86a41e0e4cbfa24abb074ac756b1e0 /gentoobrowse/package.xslt
parentFormat the changelog properly in a pre (diff)
downloadgentoobrowse-aaa2e34490f28370dc6f1f911a6df576b8cd38ad.tar.bz2
gentoobrowse-aaa2e34490f28370dc6f1f911a6df576b8cd38ad.tar.xz
gentoobrowse-aaa2e34490f28370dc6f1f911a6df576b8cd38ad.zip
Add robots txt
Reduce tab size Fix regex in dependency finder Add reverse deps to DB Show reverse deps and dependee on site
Diffstat (limited to 'gentoobrowse/package.xslt')
-rw-r--r--gentoobrowse/package.xslt26
1 files changed, 26 insertions, 0 deletions
diff --git a/gentoobrowse/package.xslt b/gentoobrowse/package.xslt
index ca9b114..e0b6e3a 100644
--- a/gentoobrowse/package.xslt
+++ b/gentoobrowse/package.xslt
@@ -109,6 +109,12 @@
<xsl:if test="count(/gentoo/summary/package/deps/package) &gt; 0">
<h3 class="tabhandle"><a href="javascript:showTab('deps');">Dependencies</a></h3>
</xsl:if>
+ <xsl:if test="count(/gentoo/summary/package/rdeps/package) &gt; 0">
+ <h3 class="tabhandle"><a href="javascript:showTab('rdeps');">Reverse dependencies</a></h3>
+ </xsl:if>
+ <xsl:if test="count(/gentoo/summary/package/depees/package) &gt; 0">
+ <h3 class="tabhandle"><a href="javascript:showTab('depees');">Dependees</a></h3>
+ </xsl:if>
<xsl:if test="count(/gentoo/summary/package/packageBugs/bug) &gt; 0">
<h3 class="tabhandle"><a href="javascript:showTab('bugs');">Open bugs</a></h3>
</xsl:if>
@@ -123,6 +129,8 @@
<!-- content -->
<xsl:apply-templates select="versions" />
<xsl:apply-templates select="deps" />
+ <xsl:apply-templates select="rdeps" />
+ <xsl:apply-templates select="depees" />
<xsl:apply-templates select="packageBugs" />
<xsl:apply-templates select="maskdetails" />
<xsl:apply-templates select="changelog" />
@@ -184,6 +192,24 @@
</xsl:if>
</xsl:template>
+ <!-- Package reverse dependencies -->
+ <xsl:template match="/gentoo/summary/package/rdeps">
+ <xsl:if test="count(/gentoo/summary/package/rdeps/package) &gt; 0">
+ <ul class="tabhidden" id="rdeps">
+ <xsl:apply-templates match="/gentoo/summary/package/rdeps/package" />
+ </ul>
+ </xsl:if>
+ </xsl:template>
+
+ <!-- Package reverse dependencies -->
+ <xsl:template match="/gentoo/summary/package/depees">
+ <xsl:if test="count(/gentoo/summary/package/depees/package) &gt; 0">
+ <ul class="tabhidden" id="depees">
+ <xsl:apply-templates match="/gentoo/summary/package/depees/package" />
+ </ul>
+ </xsl:if>
+ </xsl:template>
+
<!-- Package mask details -->
<xsl:template match="/gentoo/summary/package/maskdetails">
<xsl:if test="count(/gentoo/summary/package/maskdetails/mask) &gt; 0">