X-Git-Url: https://svn.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/e1de1db29884cefbfa8ea04eafd2b1ed37d74a03..83cd2734b6931b3ccd7f369187b47b722ac2c40a:/skins/generic/main_template_macros.pt diff --git a/skins/generic/main_template_macros.pt b/skins/generic/main_template_macros.pt index ed5f205..ba60bc6 100644 --- a/skins/generic/main_template_macros.pt +++ b/skins/generic/main_template_macros.pt @@ -37,12 +37,13 @@ global specialCtxHeader options/specialCtxHeader|nothing" /> -<div metal:define-macro="top_bar"> +<div id="top_bar" metal:define-macro="top_bar"> <table id="Masthead" cellspacing="0" border="0"> <tr> <td id="PortalLogo"><a href="#" tal:attributes="href string:${portal_url}?noajax=1; title portal_object/title_or_id"><img src="logo.gif" tal:define="logo here/logo.png" tal:attributes="src logo/absolute_url; alt portal_object/title_or_id; height logo/height; width logo/width" /></a></td> <!-- nav_bar / search_form --> - <td id="NavBar" align="right" i18n:domain="cmf_default"> + <td id="NavBar" align="right" i18n:domain="cmf_default" + tal:condition="not:isAnon"> <form action="search" method="get" tal:attributes="action string:${portal_url}/search"> <table> <tr><td><input name="SearchableText" size="16" /><input type="submit" value="Search" i18n:attributes="value" /></td></tr> @@ -56,7 +57,8 @@ global specialCtxHeader options/specialCtxHeader|nothing" </div> -<div tal:define="uname python: (isAnon and [''] or [member.getMemberFullName(nameBefore=0)])[0]" metal:define-macro="user_menu_bar"> +<div id="user_menu_bar" metal:define-macro="user_menu_bar" + tal:define="uname python: (isAnon and [''] or [member.getMemberFullName(nameBefore=0)])[0]"> <table id="MemberActionsBox" border="0" cellspacing="0" i18n:domain="cmf_default"> <tr> <td class="ActionTitle" tal:content="uname">Guest</td>