[Zope3-checkins] CVS: Zope3/src/zope/app/browser/skins/rotterdam - template.pt:1.3
Jim Fulton
jim@zope.com
Sat, 28 Dec 2002 13:53:48 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/skins/rotterdam
In directory cvs.zope.org:/tmp/cvs-serv9136
Modified Files:
template.pt
Log Message:
Changed to use request/getApplicationURL to get the root url. This
fixed some badly computed base urls.
Also reformed file so all lines are under 80 characters long.
=== Zope3/src/zope/app/browser/skins/rotterdam/template.pt 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/skins/rotterdam/template.pt:1.2 Thu Dec 26 16:33:45 2002
+++ Zope3/src/zope/app/browser/skins/rotterdam/template.pt Sat Dec 28 13:53:47 2002
@@ -11,7 +11,9 @@
<style type="text/css"
media="all"
- tal:content="string: @import url(${context/++resource++zope3.css});">
+ tal:content=
+ "string: @import url(${context/++resource++zope3.css});"
+ >
@import url(zope3.css);
</style>
@@ -19,11 +21,18 @@
<metal:block define-slot="ecmascript_slot" />
<script type="text/javascript" src="xmltree.js"
- tal:attributes="src string:${context/++resource++xmltree.js}"></script>
+ tal:attributes="src string:${context/++resource++xmltree.js}"
+ ></script>
</head>
<body onload="loadtree('');"
- tal:attributes="onload string:loadtree('${request/URL/1}/', '${request/URL/-1}/');" >
+ tal:define="rooturl request/getApplicationURL;
+ thisbaseurl request/URL/-1;
+ "
+ tal:attributes="
+ onload string:loadtree('${rooturl}/', '${thisbaseurl}/');
+ "
+ >
<div id="global">
Global elements
@@ -43,14 +52,21 @@
</div>
<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>
+ 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 id="navigators">