[Zope3-checkins] CVS: zopeproducts/bugtracker/browser/skin - __init__.py:1.1 configure.zcml:1.1 dialog_macros.pt:1.1 template.pt:1.1
Stephan Richter
srichter@cosmos.phy.tufts.edu
Thu, 24 Jul 2003 14:08:41 -0400
Update of /cvs-repository/zopeproducts/bugtracker/browser/skin
In directory cvs.zope.org:/tmp/cvs-serv302/browser/skin
Added Files:
__init__.py configure.zcml dialog_macros.pt template.pt
Log Message:
First Checkin of the Bug Tracker. A list of features is the README.txt file
and a to-do list is in TODO.txt.
The code features the use of vocabularies and vocabulary fields.
There is still a bit of work to do, but I am pretty close to make it usable
for us.
=== Added File zopeproducts/bugtracker/browser/skin/__init__.py ===
=== Added File zopeproducts/bugtracker/browser/skin/configure.zcml ===
<zopeConfigure
xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser">
<browser:skin name="tracker" layers="tracker rotterdam default" />
<browser:page
for="*"
name="skin_macros"
permission="zope.View"
layer="tracker"
template="template.pt" />
<browser:page
for="*"
name="dialog_macros"
permission="zope.View"
layer="tracker"
template="dialog_macros.pt" />
</zopeConfigure>
=== Added File zopeproducts/bugtracker/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">Zope 3 Bug Tracker</title>
<style type="text/css"
media="all"
tal:content=
"string: @import url(${context/++resource++zope3.css});"
>
@import url(zope3.css);
</style>
<style type="text/css" media="all">
body {
font: 85% Verdana, Arial, Helvetica, sans-serif;
background: white;
color: black;
margin: 0;
padding: 0;
}
#title {
font-size: 30px;
vertical-align: middle;
}
#workspace {
width: 97%;
float: left;
padding: 1em;
}
#context_information {
padding-top: 1em;
width: 15%;
float: left;
padding-left: 0.5em;
}
#content {
float: left;
width: 82%;
}
#footer {
border: 0px;
text-align: center;
clear: both;
width: 100%;
color: #808080;
}
</style>
<metal:block define-slot="headers" />
<metal:block define-slot="style_slot" />
<metal:block define-slot="ecmascript_slot" />
<link rel="icon" type="image/png"
tal:attributes="href context/++resource++favicon.png" />
</head>
<body>
<div id="global">
<img tal:attributes="src context/++resource++zope3logo.gif" />
<span id="title"> Bug Tracker</span>
</div>
<div id="workspace">
<div id="content">
<div class="item">
<metal:block define-slot="body">
Here goes the content.
</metal:block>
</div>
</div>
<div id="context_information">
<div id="helpers">
<div class="box" id="itemHelp" tal:condition="pagetip|nothing">
<h4>Tip</h4>
<div class="body">
<div class="content odd">
<metal:block define-slot="pagetip" tal:replace="pagetip">
A short tip goes here
</metal:block>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="footer"
metal:define-macro="footer">
Powered by Zope 3. Written by Stephan Richter in 2003.
</div>
</body>
</html>
</metal:block>
=== Added File zopeproducts/bugtracker/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">Zope 3 Bug Tracker</title>
<style type="text/css"
media="all"
tal:content=
"string: @import url(${context/++resource++zope3.css});"
>
@import url(zope3.css);
</style>
<style type="text/css" media="all">
body {
font: 85% Verdana, Arial, Helvetica, sans-serif;
background: white;
color: black;
margin: 0;
padding: 0;
}
#title {
font-size: 30px;
vertical-align: middle;
}
#actions div.user {
color: white;
float: right;
}
#workspace {
width: 97%;
float: left;
padding: 1em;
}
#context_information {
padding-top: 1em;
width: 15%;
float: left;
padding-left: 0.5em;
}
#content {
float: left;
width: 82%;
}
#footer {
border: 0px;
text-align: center;
clear: both;
width: 100%;
color: #808080;
}
div.clear {
clear: both;
}
</style>
<meta http-equiv="Content-Type"
content="text/html;charset=utf-8" />
<metal:block define-slot="headers" />
<metal:block define-slot="style_slot" />
<metal:block define-slot="ecmascript_slot" />
<link rel="icon" type="image/png"
tal:attributes="href context/++resource++favicon.png" />
</head>
<body>
<div id="global">
<img tal:attributes="src context/++resource++zope3logo.gif" />
<span id="title"> Bug Tracker</span>
</div>
<div id="workspace">
<div id="breadcrumbs"
metal:define-macro="breadcrumbs"
> Location: <tal:block
repeat="breadcrumb context/@@absolute_url/breadcrumbs"
><a href=""
tal:condition="repeat/breadcrumb/start"
tal:content="string:[top]"
tal:attributes="
href string:${breadcrumb/url}/@@SelectedManagementView.html"
>XXX should not hardcode root folder name string</a
><a href=""
tal:condition="not:repeat/breadcrumb/start"
tal:content="string:${breadcrumb/name}"
tal:attributes="
href string:${breadcrumb/url}/@@SelectedManagementView.html"
>breadcrumb item</a> / </tal:block>
</div>
<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" metal:define-slot="actions">
<div class="user">
You are logged in as <d tal:replace="request/user/getTitle" />.
</div>
<div class="clear"></div>
</div>
<div id="viewspace">
<div metal:define-slot="message" id="message">
</div>
<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 id="context_information">
<div id="helpers">
<div class="box" id="itemHelp" tal:condition="pagetip|nothing">
<h4>Tip</h4>
<div class="body">
<div class="content odd">
<metal:block define-slot="pagetip"
tal:replace="structure pagetip">
A short tip goes here
</metal:block>
</div>
</div>
</div>
<!-- Do not remove! This box will show the contextually related
help topics! -->
<div class="box" id="help"
tal:define="results view/@@find_help_topics|nothing"
tal:condition="results">
<h4>Online Help</h4>
<div class="body">
<a href="#"
tal:repeat="entry results"
tal:attributes="href entry/url">
<div tal:define="oddrow repeat/entry/odd"
tal:attributes="class python:oddrow and 'even' or 'odd'"
tal:content="entry/topic/title">Topic Title
</div>
</a>
</div>
</div>
<div class="spacer">
</div>
</div>
</div>
<div class="spacer">
</div>
</div>
</div>
<div id="footer" metal:define-macro="footer">
Powered by Zope 3. Written by Stephan Richter in 2003.
</div>
<div id="logger" />
</body>
</html>
</metal:block>