[CMF-checkins] SVN: CMF/trunk/CMFDefault/skins/zpt_ - some minor
skin fixes and tweaks
Yvo Schubbe
y.2006_ at wcm-solutions.de
Sun Feb 12 13:07:46 EST 2006
Log message for revision 41610:
- some minor skin fixes and tweaks
Changed:
U CMF/trunk/CMFDefault/skins/zpt_control/change_password.py
U CMF/trunk/CMFDefault/skins/zpt_generic/index_html_template.pt
U CMF/trunk/CMFDefault/skins/zpt_generic/main_template.pt
U CMF/trunk/CMFDefault/skins/zpt_generic/password_form.py
U CMF/trunk/CMFDefault/skins/zpt_generic/search_form.py
U CMF/trunk/CMFDefault/skins/zpt_generic/zpt_stylesheet.css
-=-
Modified: CMF/trunk/CMFDefault/skins/zpt_control/change_password.py
===================================================================
--- CMF/trunk/CMFDefault/skins/zpt_control/change_password.py 2006-02-12 17:56:41 UTC (rev 41609)
+++ CMF/trunk/CMFDefault/skins/zpt_control/change_password.py 2006-02-12 18:07:46 UTC (rev 41610)
@@ -13,9 +13,9 @@
member = mtool.getAuthenticatedMember()
mtool.setPassword(password, domains)
-if member.getProperty('last_login_time').Date() == '1999/01/01':
+if member.getProperty('last_login_time') == DateTime('1999/01/01'):
member.setProperties(last_login_time='2000/01/01')
mtool.credentialsChanged(password)
-
+
return context.setStatus(True, _(u'Password changed.'))
Modified: CMF/trunk/CMFDefault/skins/zpt_generic/index_html_template.pt
===================================================================
--- CMF/trunk/CMFDefault/skins/zpt_generic/index_html_template.pt 2006-02-12 17:56:41 UTC (rev 41609)
+++ CMF/trunk/CMFDefault/skins/zpt_generic/index_html_template.pt 2006-02-12 18:07:46 UTC (rev 41610)
@@ -30,7 +30,7 @@
</div>
</div>
<div id="right_sidebar"
- style="width: 20%">
+ style="float: right; width: 20%">
<tal:span tal:replace="structure context/news_box" />
</div>
</metal:slot>
Modified: CMF/trunk/CMFDefault/skins/zpt_generic/main_template.pt
===================================================================
--- CMF/trunk/CMFDefault/skins/zpt_generic/main_template.pt 2006-02-12 17:56:41 UTC (rev 41609)
+++ CMF/trunk/CMFDefault/skins/zpt_generic/main_template.pt 2006-02-12 18:07:46 UTC (rev 41610)
@@ -137,7 +137,7 @@
<table class="Forematter"
width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
- <td width="20%">
+ <td width="200px">
<!-- actions box -->
<table class="ContextActionsBox"
@@ -253,11 +253,9 @@
</td>
- <td width="2%">
- <br />
- </td>
+ <td width="16px"> </td>
- <td id="ForematterCell" width="78%">
+ <td id="ForematterCell">
<p id="Breadcrumbs" style="padding-top: 5px">
<span tal:repeat="bc context/breadcrumbs"
Modified: CMF/trunk/CMFDefault/skins/zpt_generic/password_form.py
===================================================================
--- CMF/trunk/CMFDefault/skins/zpt_generic/password_form.py 2006-02-12 17:56:41 UTC (rev 41609)
+++ CMF/trunk/CMFDefault/skins/zpt_generic/password_form.py 2006-02-12 18:07:46 UTC (rev 41610)
@@ -23,7 +23,7 @@
options = {}
-is_first_login = (member.getProperty('last_login_time').Date() == '1999/01/01')
+is_first_login = (member.getProperty('last_login_time') == DateTime('1999/01/01'))
options['is_first_login'] = is_first_login
if is_first_login:
options['title'] = _(u'Welcome!')
Modified: CMF/trunk/CMFDefault/skins/zpt_generic/search_form.py
===================================================================
--- CMF/trunk/CMFDefault/skins/zpt_generic/search_form.py 2006-02-12 17:56:41 UTC (rev 41609)
+++ CMF/trunk/CMFDefault/skins/zpt_generic/search_form.py 2006-02-12 18:07:46 UTC (rev 41610)
@@ -21,10 +21,9 @@
created = []
today = context.ZopeTime().earliestTime()
-member = mtool.getAuthenticatedMember()
created.append({'value': '1970/01/01 00:00:01 GMT', 'title': _(u'Ever')})
-if member:
- created.append({'value': member.last_login_time,
+if not mtool.isAnonymousUser():
+ created.append({'value': mtool.getAuthenticatedMember().last_login_time,
'title': _(u'Last login')})
created.append({'value': (today-1).Date(), 'title': _(u'Yesterday')})
created.append({'value': (today-7).Date(), 'title': _(u'Last week')})
Modified: CMF/trunk/CMFDefault/skins/zpt_generic/zpt_stylesheet.css
===================================================================
--- CMF/trunk/CMFDefault/skins/zpt_generic/zpt_stylesheet.css 2006-02-12 17:56:41 UTC (rev 41609)
+++ CMF/trunk/CMFDefault/skins/zpt_generic/zpt_stylesheet.css 2006-02-12 18:07:46 UTC (rev 41610)
@@ -56,9 +56,15 @@
}
td {
+ border: 0;
+ margin: 0;
vertical-align: top;
}
+th {
+ border: 0;
+ margin: 0;
+}
#Masthead {
background-color: #336699;
@@ -203,8 +209,8 @@
}
#Desktop {
- margin-left: 2pt;
- margin-right: 2pt;
+ margin-left: 0px;
+ margin-right: 16px;
}
#Permalink {
@@ -225,10 +231,6 @@
font-style: italic;
}
-table.FormLayout {
- width: 80%;
-}
-
table.FormLayout tr {
vertical-align: top;
}
@@ -244,21 +246,25 @@
}
table.FormLayout th {
- width: 72pt;
- padding-right: 8pt;
- vertical-align: top;
+ padding: 1pt 2pt 1pt 2pt;
+ width: 100px;
text-align: right;
font-size: 80%;
font-weight: bold;
}
+table.FormLayout td {
+ padding: 1pt 2pt 1pt 2pt;
+}
+
table.FormLayout dl.FieldHelp dd {
font-size: 80%;
color: #000000;
}
table.FormLayout td.ListName {
- background-color: #336699;
+ padding: 0pt 2pt 0pt 2pt;
+ background-color: #336699;
color: #FFFFFF;
font-weight: bold;
vertical-align: middle;
@@ -309,7 +315,6 @@
border: 0;
}
-
td.NewsBorder {
background-color: #336699;
}
@@ -386,6 +391,15 @@
border-collapse: collapse;
}
+.BatchTable th {
+ padding: 1pt 2pt 1pt 2pt;
+
+}
+
+.BatchTable td {
+ padding: 1pt 2pt 1pt 2pt;
+}
+
.BatchTable tr.list-header {
background-color: #aaaaaa;
text-align: left;
More information about the CMF-checkins
mailing list