[Zope3-checkins] CVS: Zope3/src/zope/products/zwiki/browser/skin - __init__.py:1.1 configure.zcml:1.1 dialog_macros.pt:1.1 template.pt:1.1 wiki.css:1.1

K.Narasimha Murthy nmurthy at zeomega.com
Tue Dec 16 05:05:55 EST 2003


Update of /cvs-repository/Zope3/src/zope/products/zwiki/browser/skin
In directory cvs.zope.org:/tmp/cvs-serv10613/browser/skin

Added Files:
	__init__.py configure.zcml dialog_macros.pt template.pt 
	wiki.css 
Log Message:
Moved zwiki product from zopeproducts to zope.products, fixed the bugs and fixed test cases.


=== Added File Zope3/src/zope/products/zwiki/browser/skin/__init__.py ===


=== Added File Zope3/src/zope/products/zwiki/browser/skin/configure.zcml ===
<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:browser="http://namespaces.zope.org/browser"
    i18n_domain="zwiki"
    >
<browser:layer name="wiki" />
<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" 
    />

<browser:page
    for="*"
    name="dialog_macros"
    permission="zope.View"
    layer="wiki"
    template="dialog_macros.pt" />

</configure>

=== Added File Zope3/src/zope/products/zwiki/browser/skin/dialog_macros.pt ===
<metal:block define-macro="dialog">
  <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="workspace">

      <div metal:define-slot="message" id="message"></div>
      
      <div id="content">
        <metal:block define-slot="body">
	  This is the content.
        </metal:block>
      </div>

    </div>


  </body>

</html>

</metal:block>



=== Added File Zope3/src/zope/products/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="wikipage_header" tal:on-error="nothing" i18n:domain="wiki">
      <div id="wikipage_path" 
         tal:content="structure context/@@breadcrumbs">Wikis/WikiPage
      </div>
      <div id="wikipage_info" i18n:translate="">Last modified by 
        <b tal:content="context/@@author" i18n:name="user">srichter</b> on
        <span tal:replace="context/@@modified" 
              i18n:name="date">March 4, 2002.</span>
      </div>
    </div>

    <div id="workspace">

      <div metal:define-slot="message" id="message"></div>
      
      <div id="content">
        <metal:block define-slot="body">
	  This is the content.
        </metal:block>
      </div>

    </div>

    <div id="footer" i18n:domain="wiki">   

      <div id="actions"
          tal:define="actions context/@@view_get_menu/wikipage_actions"
          tal:condition="actions">
          <a href="#" 
               tal:attributes="href info/action" 
               tal:repeat="info actions"
               tal:content="info/title"
	       i18n:translate="">
              Action name
          </a>&nbsp;

      	<div id="jumpto">
      	  <form action="jumpto.html">
      	    <span i18n:translate="">Jump to:</span><input name="jumpto"/>
      	  </form>
      	</div>
      </div>

      <div id="personal" i18n:translate="">
        User:
        <tal:block replace="request/user/getTitle" 
            i18n:name="user">User</tal:block>
        (<tal:block replace="request/user/getLogin" 
            tal:on-error="string:anonymous"
            i18n:name="login">login</tal:block>)

        <div id="search">
          <a href="../@@search.html">Search Wiki</a>
        </div>
      </div>


    </div>

  </body>

</html>

</metal:block>



=== Added File Zope3/src/zope/products/zwiki/browser/skin/wiki.css ===
/*
** Zope3 style sheet for CSS2-capable browsers.
**
*/

body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    background: white;
    color: black;
    margin: 0;
    padding: 0pt;
}

h1, h2, h3, h4, h5, h6 { 
    font-weight: bold; 
    color: black; 
}

h2 { 
    font-size: 16pt;
    margin-top: 0px; 
    margin-bottom: 0px;
}

p {
    margin-top: 0.4em; 
    margin-bottom: 0.4em;  
}

a {
    color: #000066;
}

a:visited {
    color: #000066;
}

textarea {
  font-family: monospace;
}

/* Structural Elements */

#search {
    float: right;
}

#personal {
    padding-top: 0.5em;
    text-align: left;
}

#workspace {
  padding: 0.5em;
}

#actions {
    color: black;
    margin: 0;
}

#actions a {
    border-left: 1px dashed #AAAAAA;
    border-collapse: collapse;
    margin: 0;
    padding: 0 0.5em;
    float: left;
}

#actions a:hover {
    color: black;
    background-color: #AAAAAA;
}

#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%;
}

#footer {
    background: #EEEEEE;
    border: solid 1px #AAAAAA;
    padding: 0.5em;
    font-size: 85%;
}

#jumpto {
  float: right;
}

#jumpto input {
  width: 10em;
}

div.row {
    clear: both;
    padding-top: 10px;
}

div.row div.label {
    float: left;
    width: 100px;
    text-align: right;
    margin-right: 0.8em;
}
# XXX someone please come and do this properly
div.row div.field {
    float: right;
    text-align: left;
}




More information about the Zope3-Checkins mailing list