diff options
Diffstat (limited to 'gentoobrowse/browse.xslt')
-rw-r--r-- | gentoobrowse/browse.xslt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gentoobrowse/browse.xslt b/gentoobrowse/browse.xslt index 6f1bacb..6720a54 100644 --- a/gentoobrowse/browse.xslt +++ b/gentoobrowse/browse.xslt @@ -46,6 +46,13 @@ (<i>Modified :</i> <xsl:value-of select="moddate" /><xsl:text> </xsl:text> <i>Slot :</i> <xsl:value-of select="slot" /><xsl:text> </xsl:text> <i>License :</i> <xsl:value-of select="license" />) + <xsl:if test="count(../../maskstatus/mask[ebuildid=current()/ebuildid]) > 0"> + <span class="masked">(Masked + <xsl:for-each select="../../maskstatus/mask[ebuildid=current()/ebuildid]"> + <xsl:value-of select="setno" /> + </xsl:for-each>) + </span> + </xsl:if> <ul> <li> <xsl:for-each select="../../versionArchs/arch[ebuildid=current()/ebuildid]"> @@ -122,12 +129,16 @@ <xsl:if test="count(/gentoo/summary/package/packageBugs/bug) > 0"> <a class="tabhandle" href="javascript:showTab('bugs');">Open bugs</a> </xsl:if> + <xsl:if test="count(/gentoo/summary/package/maskdetails/mask) > 0"> + <a class="tabhandle" href="javascript:showTab('masks');">Masks</a> + </xsl:if> </div> <div class="tabbox" id="tabcontainer"> <!-- content --> <xsl:apply-templates select="versions" /> <xsl:apply-templates select="deps" /> <xsl:apply-templates select="packageBugs" /> + <xsl:apply-templates select="maskdetails" /> <div style="clear; both" /> </div> </xsl:template> @@ -172,4 +183,18 @@ </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"> + <ol class="tabhidden" id="masks"> + <xsl:for-each select="mask"> + <li> + <xsl:value-of select="person" /> (<i>Added: </i><xsl:value-of select="dateadded" />) + <ul><li><xsl:value-of select="message" /></li></ul> + </li> + </xsl:for-each> + </ol> + </xsl:if> + </xsl:template> </xsl:stylesheet> |