diff options
Diffstat (limited to 'gentoobrowse/package.xslt')
-rw-r--r-- | gentoobrowse/package.xslt | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/gentoobrowse/package.xslt b/gentoobrowse/package.xslt index 2d7107f..11eb475 100644 --- a/gentoobrowse/package.xslt +++ b/gentoobrowse/package.xslt @@ -8,7 +8,7 @@ <xsl:template name="head"> <title><xsl:value-of select="/gentoo/summary/package/pkgname" /> (in <xsl:value-of select="/gentoo/summary/package/catname" />) Package Details - Gentoo Browse</title> <meta name="description"> - <xsl:attribute name="content"><xsl:value-of select="/gentoo/summary/package/description" /></xsl:attribute> + <xsl:attribute name="content">Gentoo Linux package details for <xsl:value-of select="/gentoo/summary/package/catname" />/<xsl:value-of select="/gentoo/summary/package/pkgname" />: <xsl:value-of select="/gentoo/summary/package/description" /></xsl:attribute> </meta> <script type="text/javascript"> function showTab(name) @@ -94,11 +94,17 @@ <xsl:apply-templates select="packageUrls" /> <h2> <a> - <xsl:attribute name="href"> - /category/<xsl:value-of select="catname" /> - </xsl:attribute> + <xsl:attribute name="href">/category/<xsl:value-of select="catname" /></xsl:attribute> + <xsl:attribute name="title">Other packages in the <xsl:value-of select="catname" /> category</xsl:attribute> <xsl:value-of select="catname" /> </a>/<xsl:value-of select="pkgname" /> + <xsl:if test="herd != 'no-herd'"> + - <small>(<a> + <xsl:attribute name="href">/herd/<xsl:value-of select="herd" /></xsl:attribute> + <xsl:attribute name="title">Other packages in the <xsl:value-of select="herd" /> herd</xsl:attribute> + <xsl:value-of select="herd" /> + </a>)</small> + </xsl:if> <xsl:if test="count(/gentoo/project2:session/project2:var[@name='loggedInUserID']) != 0"> <a id="dotrack"> <xsl:attribute name="href">javascript:track(<xsl:value-of select="/gentoo/summary/package/packageid" />);</xsl:attribute> @@ -112,9 +118,14 @@ </xsl:if>(Untrack)</a> </xsl:if> </h2> - <p> + <h3> <xsl:value-of select="description" /> - </p> + </h3> + <xsl:if test="summary != description and summary != ''"> + <p> + <xsl:value-of select="summary" /> + </p> + </xsl:if> <div class="tabstrip"> <!-- handles --> <h3 class="tabhandle"><a href="javascript:showTab('versions');">Versions</a></h3> @@ -155,9 +166,7 @@ <div class="urls"> <xsl:for-each select="url"> <a> - <xsl:attribute name="href"> - <xsl:value-of select="url" /> - </xsl:attribute> + <xsl:attribute name="href"><xsl:value-of select="url" /></xsl:attribute> <xsl:value-of select="url" /> </a> </xsl:for-each> |