Skip to content
Browse files

Adds a new 'White' theme for dirlist

git-svn-id: svn://cherokee-project.com/cherokee/trunk@5791 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information...
1 parent c5e7dda commit 0bcd4e865cc41a8c86dc640e86afda3fbbc45691 @alobbs alobbs committed Nov 19, 2010
Showing with 55 additions and 1 deletion.
  1. +1 −0 configure.in
  2. +1 −1 themes/Makefile.am
  3. +12 −0 themes/white/Makefile.am
  4. +6 −0 themes/white/entry.html
  5. +5 −0 themes/white/footer.html
  6. +20 −0 themes/white/header.html
  7. +10 −0 themes/white/theme.css
View
1 configure.in
@@ -1519,6 +1519,7 @@ doc/Makefile
themes/Makefile
themes/default/Makefile
themes/firefox3/Makefile
+themes/white/Makefile
themes/plain/Makefile
packages/Makefile
packages/osx/Makefile
View
2 themes/Makefile.am
@@ -1,3 +1,3 @@
## Cherokee: themes/Makefile.am -*- makefile -*-
-SUBDIRS = default firefox3 plain
+SUBDIRS = default firefox3 white plain
View
12 themes/white/Makefile.am
@@ -0,0 +1,12 @@
+## Cherokee: themes/white/Makefile.am -*- makefile -*-
+
+THEME = \
+header.html \
+footer.html \
+entry.html \
+theme.css
+
+cherokeethemesdir = "$(prefix)/share/cherokee/themes/white/"
+cherokeethemes_DATA = $(THEME)
+
+EXTRA_DIST = $(THEME)
View
6 themes/white/entry.html
@@ -0,0 +1,6 @@
+<tr>
+ <td valign="top"><a href="%file_link%"><img src="%icon%" alt="%icon_alt%" /></a></td>
+ <td><a href="%file_link%">%file_name%</a></td>
+ %if date%<td align="right">%date% </td>%fi%
+ %if size%<td align="right">%size%%size_unit%</td>%fi%
+</tr>
View
5 themes/white/footer.html
@@ -0,0 +1,5 @@
+ </tbody>
+ </table>
+ <address><a href="http://www.cherokee-project.com/">Cherokee</a> Web Server</address>
+</body>
+</html>
View
20 themes/white/header.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+ <link rel="stylesheet" type="text/css" media="screen" href="/cherokee_themes/white/theme.css" />
+ <title>Index of %public_dir%</title>
+</head>
+<body>
+ <h1>Index of %public_dir%</h1>
+ <pre>%notice%</pre>
+ <table>
+ <thead>
+ <tr>
+ <th><img src="%icon_dir%/page_white_text.png" alt="[ICO]" /></th>
+ <th><a href="?order=%order_name%">Name</a></th>
+ %if date%<th><a href="?order=%order_date%">Last modified</a></th>%fi%
+ %if size%<th><a href="?order=%order_size%">Size</a></th>%fi%
+ </tr>
+ </thead>
+ <tbody>
View
10 themes/white/theme.css
@@ -0,0 +1,10 @@
+body{background-color:#FFF}
+h1{font:normal 1.6em Verdana, sans-serif;padding:.2em 0 1em}
+a{text-decoration:none}
+a:hover{text-decoration:underline}
+img{vertical-align:middle;border:0}
+hr{border:0;height:0;width:100%;color:#000;background-color:#000}
+table{width:100%;border-top:1px solid #000;border-bottom:1px solid #000;border-collapse:collapse;margin-bottom:20px}
+td{text-align:left;font:normal 1em monospace}
+th{background-color:#eee;text-align:left;padding-top:10px;padding-bottom:10px}
+tr{border-top:1px dotted #ddd;background-color:#FFF;width:100%}

0 comments on commit 0bcd4e8

Please sign in to comment.
Something went wrong with that request. Please try again.