[CalendarServer-changes] [8070] CalendarServer/branches/users/glyph/other-html/twistedcaldav/ directory-listing.html
source_changes at macosforge.org
source_changes at macosforge.org
Tue Sep 13 12:09:28 PDT 2011
Revision: 8070
http://trac.macosforge.org/projects/calendarserver/changeset/8070
Author: glyph at apple.com
Date: 2011-09-13 12:09:28 -0700 (Tue, 13 Sep 2011)
Log Message:
-----------
Put the whole template in the directory-listing template.
Modified Paths:
--------------
CalendarServer/branches/users/glyph/other-html/twistedcaldav/directory-listing.html
Modified: CalendarServer/branches/users/glyph/other-html/twistedcaldav/directory-listing.html
===================================================================
--- CalendarServer/branches/users/glyph/other-html/twistedcaldav/directory-listing.html 2011-09-13 19:09:21 UTC (rev 8069)
+++ CalendarServer/branches/users/glyph/other-html/twistedcaldav/directory-listing.html 2011-09-13 19:09:28 UTC (rev 8070)
@@ -1,34 +1,66 @@
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<t:transparent t:render="directoryBody"
- xmlns:t="http://twistedmatrix.com/ns/twisted.web.template/0.1">
- <div class="directory-listing">
- <h1>Collection Listing</h1>
- <table>
- <tr>
- <th>Name</th><th>Size</th><th>Last Modified</th>
- <th>MIME Type</th>
- </tr>
- <tr>
- <t:attr name="class"><t:slot name="even"/></t:attr>
- <td><a><t:slot name="name"/><t:attr
- name="href"><t:slot name="url"/></t:attr></a></td>
- <td align="right"><t:slot name="size"/></td>
- <td><t:slot name="lastModified"/></td>
- <td><t:slot name="type"/></td>
- </tr>
- </table>
- </div>
- <div class="directory-listing">
- <h1>Properties</h1>
- <table>
- <tr><th>Name</th><th>Value</th></tr>
- <tr>
- <t:attr name="class"><t:slot name="even"/></t:attr>
- <td valign="top"><t:slot name="name"/></td>
- <td><pre><t:slot name="value"/></pre></td>
- </tr>
- </table>
- </div>
-</t:transparent>
+<html xmlns:t="http://twistedmatrix.com/ns/twisted.web.template/0.1"
+ t:render="main">
+ <head>
+ <title>Collection listing for <t:slot name="name" /></title>
+ </head>
+ <style>
+ th, .even td, .odd td { padding-right: 0.5em; font-family: monospace}
+ .even-dir { background-color: #efe0ef }
+ .even { background-color: #eee }
+ .odd-dir {background-color: #f0d0ef }
+ .odd { background-color: #dedede }
+ .icon { text-align: center }
+ .listing {
+ margin-left: auto;
+ margin-right: auto;
+ width: 50%;
+ padding: 0.1em;
+ }
+ body {
+ border: 0; padding: 0; margin: 0;
+ background-color: #efefef;
+ }
+ h1 {
+ padding: 0.1em;
+ background-color: #777;
+ color: white;
+ border-bottom: thin white dashed;
+ }
+ </style>
+ <body>
+ <t:transparent t:render="directoryBody"
+ >
+ <div class="directory-listing">
+ <h1>Collection Listing</h1>
+ <table>
+ <tr>
+ <th>Name</th><th>Size</th><th>Last Modified</th>
+ <th>MIME Type</th>
+ </tr>
+ <tr>
+ <t:attr name="class"><t:slot name="even"/></t:attr>
+ <td><a><t:slot name="name"/><t:attr
+ name="href"><t:slot name="url"/></t:attr></a></td>
+ <td align="right"><t:slot name="size"/></td>
+ <td><t:slot name="lastModified"/></td>
+ <td><t:slot name="type"/></td>
+ </tr>
+ </table>
+ </div>
+ <div class="directory-listing">
+ <h1>Properties</h1>
+ <table>
+ <tr><th>Name</th><th>Value</th></tr>
+ <tr>
+ <t:attr name="class"><t:slot name="even"/></t:attr>
+ <td valign="top"><t:slot name="name"/></td>
+ <td><pre><t:slot name="value"/></pre></td>
+ </tr>
+ </table>
+ </div>
+ </t:transparent>
+ </body>
+</html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110913/938a851b/attachment.html>
More information about the calendarserver-changes
mailing list