1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-03 07:31:00 +01:00

* Store paths are now abbreviated in the generated HTML file.

Hovering over the abbreviated path will reveal the full path.  This
  probably only works in Mozilla.
This commit is contained in:
Eelco Dolstra 2004-03-16 12:47:09 +00:00
parent 9d2669d218
commit b5539e7a30
3 changed files with 89 additions and 13 deletions

View file

@ -17,9 +17,7 @@
<xsl:template match="nest">
<div class='nesting'>
<div class='head'>
<code>
<xsl:value-of select="head"/>
</code>
<xsl:apply-templates select='head'/>
</div>
<blockquote class='body'>
<xsl:for-each select='line|nest'>
@ -52,10 +50,17 @@
</div>
</xsl:template>
<xsl:template match="line">
<code class='line'>
<xsl:value-of select="."/>
<xsl:template match="head|line">
<code>
<xsl:apply-templates/>
</code>
</xsl:template>
<xsl:template match="storeref">
<em class='storeref'>
<span class='z'><span class='popup'><xsl:apply-templates/></span></span>
<span class='elided'>(...)</span><xsl:apply-templates select='name'/><xsl:apply-templates select='path'/>
</em>
</xsl:template>
</xsl:stylesheet>