[CMF-checkins] CVS: CMF/CMFCalendar/skins/zpt_calendar - CalendarStyle.css:1.4 event_view.pt:1.3

Yvo Schubbe y.2004_ at wcm-solutions.de
Wed Feb 25 05:54:45 EST 2004


Update of /cvs-repository/CMF/CMFCalendar/skins/zpt_calendar
In directory cvs.zope.org:/tmp/cvs-serv20163/CMFCalendar/skins/zpt_calendar

Modified Files:
	CalendarStyle.css event_view.pt 
Log Message:
- changed base tag policy (Collector #66)
- basic cleanup including EOLs, tabs, styles (sorry for the big diff)


=== CMF/CMFCalendar/skins/zpt_calendar/CalendarStyle.css 1.3 => 1.4 ===
--- CMF/CMFCalendar/skins/zpt_calendar/CalendarStyle.css:1.3	Sun Jun  8 15:47:52 2003
+++ CMF/CMFCalendar/skins/zpt_calendar/CalendarStyle.css	Wed Feb 25 05:54:44 2004
@@ -113,3 +113,20 @@
     border: 1px solid Black;
     text-align: center;
 }
+
+table.Event {
+    background-color: #DDDDDD;
+}
+
+table.Event th {
+    text-align: left;
+    white-space: nowrap;
+    font-size: 80%;
+    font-weight: bold;
+    font-family: Verdana, Helvetica, sans-serif;
+}
+
+table.Event td {
+    font-size: 80%;
+    font-family: Verdana, Helvetica, sans-serif;
+}


=== CMF/CMFCalendar/skins/zpt_calendar/event_view.pt 1.2 => 1.3 ===
--- CMF/CMFCalendar/skins/zpt_calendar/event_view.pt:1.2	Fri Oct 12 12:21:18 2001
+++ CMF/CMFCalendar/skins/zpt_calendar/event_view.pt	Wed Feb 25 05:54:44 2004
@@ -1,141 +1,75 @@
-<html metal:use-macro="container/main_template/macros/master">
-    <metal:block fill-slot="base">
-            <base href=""
-                  tal:attributes="href python: here.absolute_url() + '/'">
-    </metal:block>
-    <body>
-    <div metal:fill-slot="main">
-    <style type="text/css">
-    <!--
-    td { font-size: 80%; font-family: Verdana, Helvetica, sans-serif; }
-    th { font-size: 80%; font-weight:  bold; font-family: Verdana, Helvetica, sans-serif; }
-	td.EventBackground { background: #DDDDDD; font-size: 80%; font-family: Verdana, Helvetica, sans-serif; }
-    td.EventHorizon { background: #818384; font-size: 80%; font-family: Verdana, Helvetica, sans-serif; }
-    -->
-    </style>
-    <div class="Desktop">
-    <table border="0" bordercolor="bronze" width="100%" height="100%">
-    <tr>
-        <td align="center" valign="top">
-        <table border="0" bordercolor="grey" width="100%" height="100%" cellspacing="0" cellpadding="0">
-        <tr height="2%">
-            <td colspan="5">
-            <table border="0" cellpadding="0" cellspacing="0">
-            <tr>
-                    <td><img src="../calendar/event_info_tab.gif" height="21" width="90" border="0"
-				         tal:attributes="src string:event_info_tab.gif"></td>
-                <td><img src="../calendar/space.gif" width="1" height="1"
-					           tal:attributes="src string:space.gif"></td>
-                <td></td>
-                <td><img src="../calendar/space.gif" width="1" height="1"
-					           tal:attributes="src string:space.gif"></td>
-                <td></td>
-                <td><img src="../calendar/space.gif" width="1" height="1"
-					           tal:attributes="src string:space.gif"></td>
-                <td></td>
-                <td><img src="../calendar/space.gif" width="1" height="1"
-					           tal:attributes="src string:space.gif"></td>
-            </tr>
-            </table>
-            </td>
-        </tr>
-        <tr height="2%">
-            <td class="EventHorizon" width="15%" colspan="4">&nbsp;</td>
-            <td width="85%" class="EventHorizon" align="right" nowrap>
-            <table border="0" cellpadding="6" cellspacing="0">
-            <tr>
-                <td align="left" nowrap>&nbsp;
-                
-                </td>
-            </tr>
-            </table>
-            </td>
-        </tr>
-        <tr height="1">
-            <td colspan="5" bgcolor="#FFFFFF"><img src="../calendar/space.gif" width="1" height="1"
-					           tal:attributes="src string:space.gif"></td>
-        </tr>
-        <tr height="96%">
-            <td colspan="5" class="EventBackground" valign="top">
-            <table border="0" cellpadding="5" width="100%" cellspacing="3">
-            <tr>
-                <td class="EventBackground">
-                <table border="0" width="100%">
-                <tr>
-                    <th width="10%" align="left" npwrap>Event Name</th>
-                    <td nowrap tal:content="here/Title">Title</td>
-                    <th width="10%" align="left" nowrap>Contact Name</th>
-                    <td nowrap tal:content="here/contact_name">contact_name</td>
-                </tr>
-                <tr>
-                    <th width="10%" align="left" nowrap>Location</th>
-                    <td nowrap tal:content="here/location">location</td>
-                    <th width="10%" align="left" nowrap>Contact Email</th>
-                    <td nowrap
-                        tal:condition="here/contact_email">
-                        <a tal:attributes="href python:'mailto:' + here.contact_email"
-                        tal:content="here/contact_email"
-                        href="mailto:contact_email">contact_email</a>
-                    </td>
-                </tr>
-                <tr>
-                    <th width="10%" align="left" nowrap>Event type</th>
-                    <td valign="top" nowrap
-                        tal:content="python:modules['string'].join(here.Subject(), ' ')"></td>
-                    <th width="10%" align="left" nowrap>Contact Phone</th>
-                    <td nowrap tal:content="here/contact_phone">contact_phone</td>
-                </tr>
-                <tr tal:condition="here/event_url|nothing">
-                    <th align="left" width="10%" nowrap>Event URL</th>
-                    <td colspan="3" nowrap><a href="event_url"
-        tal:attributes="href here/event_url"
-        tal:content="here/event_url">event_url</a></td>
-                </tr>
-                <tr>
-                    <td colspan="4">
-                    <hr>
-                    </td>
-                </tr>
-                <tr>
-                    <th valign="middle" align="left" width="10%" nowrap>Start Date</th>
-                    <td tal:content="python:DateTime.Date(here.start())">
-                    start
-                    </td>
-
-                    <th valign="middle" align="left" width="10%" nowrap> Stop Date </th>
-                    <td tal:content="python:DateTime.Date(here.end())">
-                    end
-                    </td>
-                </tr>
-                <tr>
-                    <th valign="Middle" align="left" width="10%" nowrap>Start Time</th>
-                    <td tal:content="python:DateTime.Time(here.start())">
-                    </td>
-                    <th valign="middle" align="left" width="10%" nowrap>Stop Time</th>
-                    <td tal:content="python:DateTime.Time(here.end())">
-                    </td>
-                </tr>
-                <tr>
-                    <td colspan="4"><hr></td></tr>
-                <tr>
-                    <th align="right" valign="top">Description</th>
-                    <td colspan="3" valign="top" nowrap
-                        tal:content="here/Description">Description</td>
-                </tr>
-                <tr>
-                    <td height="30" colspan="4">&nbsp;</td>
-                </tr>
-                </table>
-                </td>
-            </tr>
-            </table>
-            </td>
-        </tr>
-        </table>
-        </td>
-    </tr>
-    </table>
-    </div>
-	</div>
-    </body>
-    </html>
+<html xmlns:tal="http://xml.zope.org/namespaces/tal"
+      xmlns:metal="http://xml.zope.org/namespaces/metal"
+      metal:use-macro="here/main_template/macros/master">
+<head>
+ <metal:block fill-slot="base"
+ ><tal:span tal:replace="structure here/getBaseTag"
+/></metal:block>
+</head>
+<body>
+
+<metal:block metal:fill-slot="main">
+<div class="Desktop">
+
+<table class="Event" border="0" cellpadding="5" width="100%" cellspacing="3">
+ <tr>
+  <th width="10%">Event Name</th>
+  <td nowrap="nowrap" tal:content="here/Title">Title</td>
+  <th width="10%">Contact Name</th>
+  <td nowrap="nowrap" tal:content="here/contact_name">contact_name</td>
+ </tr>
+ <tr>
+  <th width="10%">Location</th>
+  <td nowrap="nowrap" tal:content="here/location">location</td>
+  <th width="10%">Contact Email</th>
+  <td nowrap="nowrap" tal:condition="here/contact_email">
+   <a tal:attributes="href python:'mailto:' + here.contact_email"
+      tal:content="here/contact_email"
+      href="mailto:contact_email">contact_email</a></td>
+ </tr>
+ <tr>
+  <th width="10%">Event type</th>
+  <td valign="top" nowrap="nowrap"
+     tal:content="python:' '.join( here.Subject() )"></td>
+  <th width="10%">Contact Phone</th>
+  <td nowrap="nowrap" tal:content="here/contact_phone">contact_phone</td>
+ </tr>
+ <tr tal:condition="here/event_url|nothing">
+  <th width="10%">Event URL</th>
+  <td colspan="3" nowrap="nowrap"><a href="event_url"
+     tal:attributes="href here/event_url"
+     tal:content="here/event_url">event_url</a></td>
+ </tr>
+ <tr>
+  <td colspan="4"><hr /></td>
+ </tr>
+ <tr>
+  <th width="10%">Start Date</th>
+  <td tal:content="python:DateTime.Date(here.start())">start</td>
+  <th width="10%">Stop Date</th>
+  <td tal:content="python:DateTime.Date(here.end())">end</td>
+ </tr>
+ <tr>
+  <th width="10%">Start Time</th>
+  <td tal:content="python:DateTime.Time(here.start())">start</td>
+  <th width="10%">Stop Time</th>
+  <td tal:content="python:DateTime.Time(here.end())">end</td>
+ </tr>
+ <tr>
+  <td colspan="4"><hr /></td>
+ </tr>
+ <tr>
+  <th width="10%">Description</th>
+  <td colspan="3" valign="top" nowrap="nowrap"
+     tal:content="here/Description">Description</td>
+ </tr>
+ <tr>
+  <td colspan="4">&nbsp;</td>
+ </tr>
+</table>
+
+</div>
+</metal:block>
+
+</body>
+</html>




More information about the CMF-checkins mailing list