diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-12-18 00:44:58 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-12-18 00:44:58 +0000 |
commit | 54143af9efca38f83a453bac6056592e2f1dbc3f (patch) | |
tree | f039629e22d346bfc0a29345a116f79b38cdc2e7 | |
parent | 9b143a9e396b047fd5379f3b047913719ef8ed14 (diff) | |
download | busybox-w32-54143af9efca38f83a453bac6056592e2f1dbc3f.tar.gz busybox-w32-54143af9efca38f83a453bac6056592e2f1dbc3f.tar.bz2 busybox-w32-54143af9efca38f83a453bac6056592e2f1dbc3f.zip |
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 000000000..b1ca24a05 --- /dev/null +++ b/docs/busybox.net/svnindex.css | |||
@@ -0,0 +1,92 @@ | |||
1 | /* A sample style sheet for displaying the Subversion directory listing | ||
2 | that is generated by mod_dav_svn and "svnindex.xsl". */ | ||
3 | |||
4 | body{ | ||
5 | margin: 0; | ||
6 | padding: 0; | ||
7 | } | ||
8 | |||
9 | a { | ||
10 | color: navy; | ||
11 | } | ||
12 | |||
13 | .header { | ||
14 | padding-top: 5px; | ||
15 | text-align: center; | ||
16 | } | ||
17 | |||
18 | .footer { | ||
19 | margin-top: 8em; | ||
20 | padding: 0.5em 1em 0.5em; | ||
21 | border: 1px solid; | ||
22 | border-width: 1px 0; | ||
23 | clear: both; | ||
24 | border-color: rgb(30%,30%,50%) navy rgb(75%,80%,85%) navy; | ||
25 | background: rgb(88%,90%,92%); | ||
26 | font-size: 80%; | ||
27 | } | ||
28 | |||
29 | .svn { | ||
30 | margin: 3em; | ||
31 | } | ||
32 | |||
33 | .rev { | ||
34 | margin-right: 3px; | ||
35 | padding-left: 3px; | ||
36 | text-align: left; | ||
37 | font-size: 120%; | ||
38 | } | ||
39 | |||
40 | .dir a { | ||
41 | text-decoration: none; | ||
42 | color: black; | ||
43 | } | ||
44 | |||
45 | .file a { | ||
46 | text-decoration: none; | ||
47 | color: black; | ||
48 | } | ||
49 | |||
50 | .path { | ||
51 | margin: 3px; | ||
52 | padding: 3px; | ||
53 | background: #FFCC66; | ||
54 | font-size: 120%; | ||
55 | } | ||
56 | |||
57 | .updir { | ||
58 | margin: 3px; | ||
59 | padding: 3px; | ||
60 | margin-left: 3em; | ||
61 | background: #FFEEAA; | ||
62 | } | ||
63 | |||
64 | .file { | ||
65 | margin: 3px; | ||
66 | padding: 3px; | ||
67 | margin-left: 3em; | ||
68 | background: rgb(95%,95%,95%); | ||
69 | } | ||
70 | |||
71 | .file:hover { | ||
72 | margin: 3px; | ||
73 | padding: 3px; | ||
74 | margin-left: 3em; | ||
75 | background: rgb(100%,100%,90%); | ||
76 | /* border: 1px black solid; */ | ||
77 | } | ||
78 | |||
79 | .dir { | ||
80 | margin: 3px; | ||
81 | padding: 3px; | ||
82 | margin-left: 3em; | ||
83 | background: rgb(90%,90%,90%); | ||
84 | } | ||
85 | |||
86 | .dir:hover { | ||
87 | margin: 3px; | ||
88 | padding: 3px; | ||
89 | margin-left: 3em; | ||
90 | background: rgb(100%,100%,80%); | ||
91 | /* border: 1px black solid; */ | ||
92 | } | ||
diff --git a/docs/busybox.net/svnindex.xsl b/docs/busybox.net/svnindex.xsl new file mode 100644 index 000000000..b4cc5f993 --- /dev/null +++ b/docs/busybox.net/svnindex.xsl | |||
@@ -0,0 +1,108 @@ | |||
1 | <?xml version="1.0"?> | ||
2 | |||
3 | <!-- A sample XML transformation style sheet for displaying the Subversion | ||
4 | directory listing that is generated by mod_dav_svn when the "SVNIndexXSLT" | ||
5 | directive is used. --> | ||
6 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | ||
7 | |||
8 | <xsl:output method="html"/> | ||
9 | |||
10 | <xsl:template match="*"/> | ||
11 | |||
12 | <xsl:template match="svn"> | ||
13 | <html> | ||
14 | <head> | ||
15 | <title> | ||
16 | <xsl:if test="string-length(index/@name) != 0"> | ||
17 | <xsl:value-of select="index/@name"/> | ||
18 | <xsl:text>: </xsl:text> | ||
19 | </xsl:if> | ||
20 | <xsl:value-of select="index/@path"/> | ||
21 | </title> | ||
22 | <link rel="stylesheet" type="text/css" href="/svnindex.css"/> | ||
23 | </head> | ||
24 | <body> | ||
25 | <div class="header" style="font-family: lucida, helvetica; font-size: 248%"> | ||
26 | <xsl:text>BUSYBOX</xsl:text> | ||
27 | </div> | ||
28 | <div class="header"> | ||
29 | <a href="http://www.busybox.net"><img src="/images/busybox1.png" border="0" /></a> | ||
30 | </div> | ||
31 | <div class="svn"> | ||
32 | <xsl:apply-templates/> | ||
33 | </div> | ||
34 | <div class="footer"> | ||
35 | <xsl:text>Powered by </xsl:text> | ||
36 | <xsl:element name="a"> | ||
37 | <xsl:attribute name="href"> | ||
38 | <xsl:value-of select="@href"/> | ||
39 | </xsl:attribute> | ||
40 | <xsl:text>Subversion</xsl:text> | ||
41 | </xsl:element> | ||
42 | <xsl:text> </xsl:text> | ||
43 | <xsl:value-of select="@version"/> | ||
44 | </div> | ||
45 | </body> | ||
46 | </html> | ||
47 | </xsl:template> | ||
48 | |||
49 | <xsl:template match="index"> | ||
50 | <div class="rev"> | ||
51 | <xsl:value-of select="@name"/> | ||
52 | <xsl:if test="@base"> | ||
53 | <xsl:if test="@name"> | ||
54 | <xsl:text>:  </xsl:text> | ||
55 | </xsl:if> | ||
56 | <xsl:value-of select="@base" /> | ||
57 | </xsl:if> | ||
58 | <xsl:if test="@rev"> | ||
59 | <xsl:if test="@base | @name"> | ||
60 | <xsl:text> — </xsl:text> | ||
61 | </xsl:if> | ||
62 | <xsl:text>Revision </xsl:text> | ||
63 | <xsl:value-of select="@rev"/> | ||
64 | </xsl:if> | ||
65 | </div> | ||
66 | <div class="path"> | ||
67 | <xsl:value-of select="@path"/> | ||
68 | </div> | ||
69 | <xsl:apply-templates select="updir"/> | ||
70 | <xsl:apply-templates select="dir"/> | ||
71 | <xsl:apply-templates select="file"/> | ||
72 | </xsl:template> | ||
73 | |||
74 | <xsl:template match="updir"> | ||
75 | <div class="updir"> | ||
76 | <xsl:text>[</xsl:text> | ||
77 | <xsl:element name="a"> | ||
78 | <xsl:attribute name="href">..</xsl:attribute> | ||
79 | <xsl:text>Parent Directory</xsl:text> | ||
80 | </xsl:element> | ||
81 | <xsl:text>]</xsl:text> | ||
82 | </div> | ||
83 | </xsl:template> | ||
84 | |||
85 | <xsl:template match="dir"> | ||
86 | <div class="dir"> | ||
87 | <xsl:element name="a"> | ||
88 | <xsl:attribute name="href"> | ||
89 | <xsl:value-of select="@href"/> | ||
90 | </xsl:attribute> | ||
91 | <xsl:value-of select="@name"/> | ||
92 | <xsl:text>/</xsl:text> | ||
93 | </xsl:element> | ||
94 | </div> | ||
95 | </xsl:template> | ||
96 | |||
97 | <xsl:template match="file"> | ||
98 | <div class="file"> | ||
99 | <xsl:element name="a"> | ||
100 | <xsl:attribute name="href"> | ||
101 | <xsl:value-of select="@href"/> | ||
102 | </xsl:attribute> | ||
103 | <xsl:value-of select="@name"/> | ||
104 | </xsl:element> | ||
105 | </div> | ||
106 | </xsl:template> | ||
107 | |||
108 | </xsl:stylesheet> | ||