[Zope3-checkins] CVS: zopeproducts/zwiki/browser/skin - __init__.py:1.1 configure.zcml:1.1 template.pt:1.1 wiki.css:1.1
Stephan Richter
srichter@cbu.edu
Wed, 9 Apr 2003 17:47:18 -0400
Update of /cvs-repository/zopeproducts/zwiki/browser/skin
In directory cvs.zope.org:/tmp/cvs-serv14209/browser/skin
Added Files:
__init__.py configure.zcml template.pt wiki.css
Log Message:
Whee, this is a big structural change. I am making this the last location
chnage for Wiki and WikiPage, so that people can start using zwiki for
Zope 3 for their sites. Before the next structural change, I will provide
tools to import and export the data in XML without loss of information.
Here are the changes:
- Created browser directory and moved everything browser-related in there.
- Moved Wiki and WikiPage broswer code into separate files.
- Added 'wiki' skin.
- Moved Wiki and WikiPage content objects into their own files.
- Adjusted tests and configuration to reflect this change.
Okay, back to working on the stylesheet stuff. :))
=== Added File zopeproducts/zwiki/browser/skin/__init__.py ===
=== Added File zopeproducts/zwiki/browser/skin/configure.zcml ===
<zopeConfigure
xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser"
>
<browser:skin name="wiki" layers="wiki rotterdam default" />
<browser:resource
name="wiki.css" file="wiki.css" layer="wiki" />
<browser:page
for="*"
name="standard_macros"
permission="zope.View"
layer="wiki"
template="template.pt"
/>
</zopeConfigure>
=== Added File zopeproducts/zwiki/browser/skin/template.pt ===
<metal:block define-macro="page">
<metal:block define-slot="doctype">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
</metal:block>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title metal:define-slot="title">ZWiki for Zope 3</title>
<style type="text/css" media="all"
tal:content="string: @import url(${context/++resource++wiki.css});">
@import url(wiki.css);
</style>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="icon" type="image/png"
tal:attributes="href context/++resource++favicon.png" />
</head>
<body>
<div id="personal">
<div id="userDetails">
<metal:block define-macro="logged_user">
User:
<tal:block replace="request/user/getTitle">
User
</tal:block>
</metal:block>
</div>
</div>
<div id="workspace">
<div class="itemViews"
metal:define-slot="tabs">
<tal:block repeat="view context/@@view_get_menu/zmi_views">
<a href=""
tal:attributes="href view/action;
class view/selected;"
tal:content="view/title">
label
</a>
</tal:block>
</div>
<div id="actions"
tal:define="actions context/@@view_get_menu/zmi_actions"
tal:condition="actions"
metal:define-slot="tabs">
<a href="#"
tal:attributes="href info/action"
tal:repeat="info actions"
tal:content="info/title">
Action name
</a>
</div>
<div metal:define-slot="message" id="message" />
<div id="content">
<metal:block define-slot="body">
<table class="listing">
<thead>
<th>Test</th>
<th>Another</th>
</thead>
<tbody>
<tr>
<td>content</td>
<td>thingy</td>
</tr>
<tr class="even">
<td>more</td>
<td>data</td>
</tr>
</tbody>
</table>
</metal:block>
</div>
</div>
<div id="footer" metal:define-macro="footer" />
</body>
</html>
</metal:block>
=== Added File zopeproducts/zwiki/browser/skin/wiki.css ===
/*
** Zope3 style sheet for CSS2-capable browsers.
**
*/
body {
font: 85% Verdana, Arial, Helvetica, sans-serif;
background: white;
color: black;
margin: 0;
padding: 5pt;
}
H1, H2, H3, H4, H5, H6 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
color: black;
}
H2 { font-size: 16pt;
margin-top: 0px;
margin-bottom: 0px;}
/* Structural Elements */
#personal {
border-bottom: 1px solid black;
text-align: left;
padding: 0.1em 1em;
}
#userDetails {
float: right;
}
#workspace {
width: 79%;
float: left;
}
#wikipage_header {
background: #EEEEEE;
border: solid 1px #AAAAAA;
padding: 3pt;
}
#wikipage_path {
font-size: 18pt;
padding-top: 5pt;
padding-bottom: 5pt;
}
#wikipage_info {
border-top: solid 1px #CCCCCC;
font-size: 85%;
}