diff options
author | Bernhard Reutner-Fischer | 2008-12-18 00:44:58 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2008-12-18 00:44:58 +0000 |
commit | 54143af9efca38f83a453bac6056592e2f1dbc3f (patch) | |
tree | f039629e22d346bfc0a29345a116f79b38cdc2e7 | |
parent | 9b143a9e396b047fd5379f3b047913719ef8ed14 (diff) | |
download | busybox-54143af9efca38f83a453bac6056592e2f1dbc3f.zip busybox-54143af9efca38f83a453bac6056592e2f1dbc3f.tar.gz |
Add fancy svn browser thingy (via Lance Albertson of OSL)
-rw-r--r-- | docs/busybox.net/svnindex.css | 92 | ||||
-rw-r--r-- | docs/busybox.net/svnindex.xsl | 108 |
2 files changed, 200 insertions, 0 deletions
diff --git a/docs/busybox.net/svnindex.css b/docs/busybox.net/svnindex.css new file mode 100644 index 0000000..b1ca24a --- /dev/null +++ b/docs/busybox.net/svnindex.css @@ -0,0 +1,92 @@ +/* A sample style sheet for displaying the Subversion directory listing + that is generated by mod_dav_svn and "svnindex.xsl". */ + +body{ + margin: 0; + padding: 0; +} + +a { + color: navy; +} + +.header { + padding-top: 5px; + text-align: center; +} + +.footer { + margin-top: 8em; + padding: 0.5em 1em 0.5em; + border: 1px solid; + border-width: 1px 0; + clear: both; + border-color: rgb(30%,30%,50%) navy rgb(75%,80%,85%) navy; + background: rgb(88%,90%,92%); + font-size: 80%; +} + +.svn { + margin: 3em; +} + +.rev { + margin-right: 3px; + padding-left: 3px; + text-align: left; + font-size: 120%; +} + +.dir a { + text-decoration: none; + color: black; +} + +.file a { + text-decoration: none; + color: black; +} + +.path { + margin: 3px; + padding: 3px; + background: #FFCC66; + font-size: 120%; +} + +.updir { + margin: 3px; + padding: 3px; + margin-left: 3em; + background: #FFEEAA; +} + +.file { + margin: 3px; + padding: 3px; + margin-left: 3em; + background: rgb(95%,95%,95%); +} + +.file:hover { + margin: 3px; + padding: 3px; + margin-left: 3em; + background: rgb(100%,100%,90%); +/* border: 1px black solid; */ +} + +.dir { + margin: 3px; + padding: 3px; + margin-left: 3em; + background: rgb(90%,90%,90%); +} + +.dir:hover { + margin: 3px; + padding: 3px; + margin-left: 3em; + background: rgb(100%,100%,80%); +/* border: 1px black solid; */ +} diff --git a/docs/busybox.net/svnindex.xsl b/docs/busybox.net/svnindex.xsl new file mode 100644 index 0000000..b4cc5f9 --- /dev/null +++ b/docs/busybox.net/svnindex.xsl @@ -0,0 +1,108 @@ +<?xml version="1.0"?> + +<!-- A sample XML transformation style sheet for displaying the Subversion + directory listing that is generated by mod_dav_svn when the "SVNIndexXSLT" + directive is used. --> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + + <xsl:output method="html"/> + + <xsl:template match="*"/> + + <xsl:template match="svn"> + <html> + <head> + <title> + <xsl:if test="string-length(index/@name) != 0"> + <xsl:value-of select="index/@name"/> + <xsl:text>: </xsl:text> + </xsl:if> + <xsl:value-of select="index/@path"/> + </title> + <link rel="stylesheet" type="text/css" href="/svnindex.css"/> + </head> + <body> + <div class="header" style="font-family: lucida, helvetica; font-size: 248%"> + <xsl:text>BUSYBOX</xsl:text> + </div> + <div class="header"> + <a href="http://www.busybox.net"><img src="/images/busybox1.png" border="0" /></a> + </div> + <div class="svn"> + <xsl:apply-templates/> + </div> + <div class="footer"> + <xsl:text>Powered by </xsl:text> + <xsl:element name="a"> + <xsl:attribute name="href"> + <xsl:value-of select="@href"/> + </xsl:attribute> + <xsl:text>Subversion</xsl:text> + </xsl:element> + <xsl:text> </xsl:text> + <xsl:value-of select="@version"/> + </div> + </body> + </html> + </xsl:template> + + <xsl:template match="index"> + <div class="rev"> + <xsl:value-of select="@name"/> + <xsl:if test="@base"> + <xsl:if test="@name"> + <xsl:text>:  </xsl:text> + </xsl:if> + <xsl:value-of select="@base" /> + </xsl:if> + <xsl:if test="@rev"> + <xsl:if test="@base | @name"> + <xsl:text> — </xsl:text> + </xsl:if> + <xsl:text>Revision </xsl:text> + <xsl:value-of select="@rev"/> + </xsl:if> + </div> + <div class="path"> + <xsl:value-of select="@path"/> + </div> + <xsl:apply-templates select="updir"/> + <xsl:apply-templates select="dir"/> + <xsl:apply-templates select="file"/> + </xsl:template> + + <xsl:template match="updir"> + <div class="updir"> + <xsl:text>[</xsl:text> + <xsl:element name="a"> + <xsl:attribute name="href">..</xsl:attribute> + <xsl:text>Parent Directory</xsl:text> + </xsl:element> + <xsl:text>]</xsl:text> + </div> + </xsl:template> + + <xsl:template match="dir"> + <div class="dir"> + <xsl:element name="a"> + <xsl:attribute name="href"> + <xsl:value-of select="@href"/> + </xsl:attribute> + <xsl:value-of select="@name"/> + <xsl:text>/</xsl:text> + </xsl:element> + </div> + </xsl:template> + + <xsl:template match="file"> + <div class="file"> + <xsl:element name="a"> + <xsl:attribute name="href"> + <xsl:value-of select="@href"/> + </xsl:attribute> + <xsl:value-of select="@name"/> + </xsl:element> + </div> + </xsl:template> + +</xsl:stylesheet> |