diff options
Diffstat (limited to 'gentoobrowse/browse.xslt')
-rw-r--r-- | gentoobrowse/browse.xslt | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/gentoobrowse/browse.xslt b/gentoobrowse/browse.xslt index 7a3cf29..8bbf2c0 100644 --- a/gentoobrowse/browse.xslt +++ b/gentoobrowse/browse.xslt @@ -44,8 +44,10 @@ <li> <span class="ver">v<xsl:value-of select="version" /></span> (<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" />) + <i>Slot :</i> <xsl:value-of select="slot" /> + <xsl:if test="license"><xsl:text> </xsl:text> + <i>License :</i> <xsl:value-of select="license" /> + </xsl:if>) <xsl:if test="count(../../maskstatus/mask[ebuildid=current()/ebuildid]) > 0"> <span class="masked">(Masked <xsl:for-each select="../../maskstatus/mask[ebuildid=current()/ebuildid]"> @@ -132,6 +134,9 @@ <xsl:if test="count(/gentoo/summary/package/maskdetails/mask) > 0"> <a class="tabhandle" href="javascript:showTab('masks');">Masks</a> </xsl:if> + <xsl:if test="count(/gentoo/summary/package/changelog/line) > 0"> + <a class="tabhandle" href="javascript:showTab('changelog');">Change log</a> + </xsl:if> </div> <div class="tabbox" id="tabcontainer"> <!-- content --> @@ -139,6 +144,7 @@ <xsl:apply-templates select="deps" /> <xsl:apply-templates select="packageBugs" /> <xsl:apply-templates select="maskdetails" /> + <xsl:apply-templates select="changelog" /> <div style="clear; both" /> </div> </xsl:template> @@ -175,6 +181,17 @@ </xsl:if> </xsl:template> + <!-- Change log --> + <xsl:template match="/gentoo/summary/package/changelog"> + <xsl:if test="count(/gentoo/summary/package/changelog/line) > 0"> + <div class="tabhidden" id="changelog"> + <xsl:for-each select="line"> + <p><xsl:value-of select="content" /></p> + </xsl:for-each> + </div> + </xsl:if> + </xsl:template> + <!-- Package dependencies --> <xsl:template match="/gentoo/summary/package/deps"> <xsl:if test="count(/gentoo/summary/package/deps/package) > 0"> |