[z3-checkins] r43828 - z3/NudgeNudge/trunk/src/nudgenudge/macro_templates
philikon at codespeak.net
philikon at codespeak.net
Tue May 29 05:53:46 CEST 2007
Author: philikon
Date: Tue May 29 05:53:45 2007
New Revision: 43828
Modified:
z3/NudgeNudge/trunk/src/nudgenudge/macro_templates/master.pt
Log:
Use grok's new View.application_url() method to compute URLs relative to the nearest
Application object
Modified: z3/NudgeNudge/trunk/src/nudgenudge/macro_templates/master.pt
==============================================================================
--- z3/NudgeNudge/trunk/src/nudgenudge/macro_templates/master.pt (original)
+++ z3/NudgeNudge/trunk/src/nudgenudge/macro_templates/master.pt Tue May 29 05:53:45 2007
@@ -8,17 +8,17 @@
<ul class="level-one">
<li class="selected">
<a class="selected" href=""
- tal:attributes="href request/getApplicationURL">Nudge Nudge</a>
+ tal:attributes="href view/application_url">Nudge Nudge</a>
<ul class="level-two">
<li><a href=""
- tal:attributes="href string:${request/getApplicationURL}/createreview">Write a review</a></li>
+ tal:attributes="href string:${view/application_url}/createreview">Write a review</a></li>
</ul>
</li>
</ul>
</div>
-<h1><a href="" tal:attributes="href request/getApplicationURL">
+<h1><a href="" tal:attributes="href view/application_url">
Nudge Nudge
</a></h1>
@@ -39,13 +39,13 @@
<ul tal:condition="python:IUnauthenticatedPrincipal.providedBy(request.principal)">
<li>
<a href="login"
- tal:attributes="href string:${request/getApplicationURL}/login">
+ tal:attributes="href string:${view/application_url}/login">
Log in
</a>
</li>
<li>
<a href="signup"
- tal:attributes="href string:${request/getApplicationURL}/signup">
+ tal:attributes="href string:${view/application_url}/signup">
Register
</a>
</li>
@@ -55,7 +55,7 @@
<ul tal:condition="python:not IUnauthenticatedPrincipal.providedBy(request.principal)">
<li>
<a href="logout"
- tal:attributes="href string:${request/getApplicationURL}/logout.html">
+ tal:attributes="href string:${view/application_url}/logout.html">
Log out
</a>
</li>
More information about the z3-checkins
mailing list