Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged trunk to branch. I still ahve 4 ftests failing, but I suspect, it
will be fixed once I merge the changes of the last three days (hopefully).
- Loading branch information
Showing
1 changed file
with
262 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,262 @@ | ||
<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" | ||
i18n:domain="zope" | ||
tal:define="sitemgmt python:'/++etc++site/' in str(request.URL)"> | ||
|
||
<head> | ||
<title metal:define-slot="title" | ||
tal:content="string:Z3: ${context/zope:title_or_name}">Z3 UI</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" tal:condition="sitemgmt" | ||
tal:content="string:@import url(${context/++resource++site_management.css});"> | ||
@import url(site_management.css); | ||
</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" /> | ||
|
||
<!-- Popup script for the OnlineHelp --> | ||
<script type="text/javascript" src="onlinehelp.js" | ||
tal:attributes="src string:${context/++resource++onlinehelp.js}" > | ||
</script> | ||
|
||
<metal:tree use-macro="context/@@standard_macros/navigation_tree_js" /> | ||
|
||
<link rel="icon" type="image/png" | ||
tal:attributes="href context/++resource++favicon.png" /> | ||
</head> | ||
|
||
<body tal:attributes="onload body_onload | nothing"> | ||
|
||
<metal:slot define-slot="global"> | ||
<div id="global" metal:define-macro="global"> | ||
<div id="userDetails" metal:define-slot="user_details"> | ||
<metal:block define-macro="logged_user"> | ||
<span tal:omit-tag="" i18n:translate="">User:</span> | ||
<tal:block replace="request/principal/title"> | ||
User | ||
</tal:block> | ||
</metal:block> | ||
<metal:block define-slot="login_logout"> | ||
<metal:macro define-macro="login_logout"> | ||
<tal:block content="structure context/@@login_logout" /> | ||
</metal:macro> | ||
</metal:block> | ||
</div> | ||
<metal:slot define-slot="logo"> | ||
<img tal:attributes="src context/++resource++zope3logo.gif" /> | ||
</metal:slot> | ||
</div> | ||
</metal:slot> | ||
|
||
|
||
<metal:slot define-slot="navigators"> | ||
<div id="navigators" metal:define-macro="navigators"> | ||
|
||
<!-- Navigation tree box --> | ||
<metal:tree use-macro="context/@@standard_macros/navigation_tree_box" /> | ||
|
||
<tal:block condition="python: macroname == 'view'"> | ||
|
||
<div class="box" id="commonTasks" | ||
tal:define="view context/@@commonTasks|nothing" | ||
tal:condition="view/strip|nothing"> | ||
|
||
|
||
<h4 i18n:translate="">Add:</h4> | ||
<div class="body"> | ||
<span tal:replace="structure view" /> | ||
</div> | ||
</div> | ||
</tal:block> | ||
|
||
<!-- Tree of the help topics that appears on the help namespace --> | ||
<div class="box" id="help" metal:define-slot="online_help" | ||
tal:condition="not:python:request.getURL().find('++help++')==-1"> | ||
<h4 i18n:translate="">Online Help - TOC</h4> | ||
<div class="body"> | ||
<div tal:content="structure view/getTopicTree|nothing" | ||
tal:omit-tag="">content of topicTree</div> | ||
<br /> | ||
</div> | ||
|
||
</div> | ||
|
||
</div> | ||
</metal:slot> | ||
|
||
<div id="workspace" metal:define-macro="workspace"> | ||
|
||
<metal:slot define-slot="breadcrumbs"> | ||
<div id="breadcrumbs" metal:define-macro="breadcrumbs" | ||
> <div tal:omit-tag="" i18n:translate="">Location:</div> <tal:block | ||
repeat="breadcrumb context/@@absolute_url/breadcrumbs" | ||
><a href="" | ||
tal:condition="repeat/breadcrumb/start" | ||
tal:attributes=" | ||
href string:${breadcrumb/url}/@@SelectedManagementView.html" | ||
i18n:translate="">[top]</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> | ||
</metal:slot> | ||
|
||
<metal:slot define-slot="tabs"> | ||
<div tal:condition="python: macroname == 'view'" class="itemViews"> | ||
<tal:block repeat="view context/@@view_get_menu/zmi_views"> | ||
<a href="" | ||
tal:attributes="href view/action; | ||
class view/selected;" | ||
tal:content="view/title" | ||
i18n:translate=""> | ||
label | ||
</a> | ||
</tal:block> | ||
</div> | ||
|
||
<!-- OnlineHelp with popup support --> | ||
<!-- note, we reverse the actions list 'cos they're packed to the | ||
screen from the right --> | ||
<div tal:condition="python: macroname == 'view'" id="actions" | ||
tal:define=" | ||
help_actions context/@@view_get_menu/help_actions|nothing; | ||
actions context/@@view_get_menu/zmi_actions; | ||
dummy python:actions.reverse()"> | ||
|
||
<span tal:condition="help_actions" | ||
tal:repeat="help_info help_actions" | ||
tal:omit-tag=""> | ||
<a href="#" | ||
tal:define="url string:'${view/__name__}/${help_info/action}'; | ||
name string:'OnlineHelp'; | ||
settings string:'height=400 | ||
,width=700 | ||
,resizable=1 | ||
,scrollbars=yes | ||
,location=no | ||
,status=no | ||
,toolbar=no | ||
,menubar=no'" | ||
tal:attributes="href python:'javascript:popup(' | ||
+ url + ',' | ||
+ name + ',' | ||
+ settings +')'" | ||
tal:content="help_info/title" | ||
i18n:translate=""> | ||
Action name | ||
</a> | ||
</span> | ||
<span tal:condition="actions" | ||
tal:omit-tag=""> | ||
<a href="#" | ||
tal:repeat="info actions" | ||
tal:attributes="href info/action" | ||
tal:content="info/title" | ||
i18n:translate=""> | ||
Action name | ||
</a> | ||
</span> | ||
| ||
</div> | ||
</metal:slot> | ||
|
||
<div id="viewspace" metal:define-slot="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" metal:define-slot="context_information"> | ||
|
||
<div id="helpers" metal:define-slot="helpers"> | ||
|
||
<div class="box" id="itemHelp" tal:condition="pagetip|nothing"> | ||
<h4 i18n:translate="">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> | ||
|
||
|
||
</div> | ||
|
||
<!-- | ||
<div id="inspectors"> | ||
<div class="box" id="metadata" | ||
tal:define="view context/@@MetaDataBox|nothing" | ||
tal:condition="view/strip|nothing"> | ||
<h4 i18n:translate="">Metadata</h4> | ||
<div class="body"> | ||
<div class="content" tal:content="structure view"> | ||
Some metadata | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
--> | ||
|
||
</div> | ||
|
||
<div class="spacer"> | ||
| ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
<div id="footer" metal:define-macro="footer" /> | ||
|
||
<div id="logger" metal:define-slot="logger" /> | ||
|
||
</body> | ||
|
||
</html> | ||
|
||
</metal:block> |