diff options
Diffstat (limited to 'gentoobrowse/package.xslt')
-rw-r--r-- | gentoobrowse/package.xslt | 26 |
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) > 0"> <h3 class="tabhandle"><a href="javascript:showTab('deps');">Dependencies</a></h3> </xsl:if> + <xsl:if test="count(/gentoo/summary/package/rdeps/package) > 0"> + <h3 class="tabhandle"><a href="javascript:showTab('rdeps');">Reverse dependencies</a></h3> + </xsl:if> + <xsl:if test="count(/gentoo/summary/package/depees/package) > 0"> + <h3 class="tabhandle"><a href="javascript:showTab('depees');">Dependees</a></h3> + </xsl:if> <xsl:if test="count(/gentoo/summary/package/packageBugs/bug) > 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) > 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) > 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) > 0"> |