diff options
author | randomdan <randomdan@localhost> | 2011-02-22 13:23:49 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2011-02-22 13:23:49 +0000 |
commit | 2898ec673ead2d0b991a8049b38e800371ee2a10 (patch) | |
tree | 4607e977d0e75c43f40bf82363d77bae71764d31 /gentoobrowse/package.xslt | |
parent | Fix a few odds and ends (diff) | |
download | gentoobrowse-2898ec673ead2d0b991a8049b38e800371ee2a10.tar.bz2 gentoobrowse-2898ec673ead2d0b991a8049b38e800371ee2a10.tar.xz gentoobrowse-2898ec673ead2d0b991a8049b38e800371ee2a10.zip |
Tidy up some HTML, add extra content from metadata.xml files
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> |