Mercurial > hg > MPIWGWeb
diff zpt/staff/edit_main.zpt @ 170:485bf377913a
fix staff editing pages.
author | casties |
---|---|
date | Fri, 07 Jun 2013 16:29:34 +0200 |
parents | ee79f6ba8d01 |
children | 37c2c29ab7ed |
line wrap: on
line diff
--- a/zpt/staff/edit_main.zpt Fri Jun 07 12:47:11 2013 +0200 +++ b/zpt/staff/edit_main.zpt Fri Jun 07 16:29:34 2013 +0200 @@ -1,6 +1,7 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html metal:define-macro="page" +<html xmlns="http://www.w3.org/1999/xhtml" + metal:define-macro="page" tal:define="global onload nothing; global menusel nothing; global staffroot python:here.MPIWGrootURL()+'/members'; @@ -29,8 +30,7 @@ <span tal:attributes="class python:here.getPathStyle('talks', menusel, 'mainmenu')"><a tal:attributes="href string:$root/editTalks">Talks</a></span> <span tal:attributes="class python:here.getPathStyle('teaching', menusel, 'mainmenu')"><a tal:attributes="href string:$root/editTeaching">Teaching</a></span> <span tal:attributes="class python:here.getPathStyle('additionalLink', menusel, 'mainmenu')"><a tal:attributes="href string:$root/editAdditionalLinks">Additional links</a></span> - - <span class="mainmenu"><a tal:attributes="href python:here.en.MPIWGrootURL()+'/staff/members/'+here.getUsername()" target="_blank">View</a></span> + <span class="mainmenu"><a tal:attributes="href string:${here/en/MPIWGrootURL}/staff/members/${here/getUsername}" target="_blank">View</a></span> </div> <div class="content"> <tal:block metal:define-slot="body"/>