Commit 07597c79 authored by Gabriel Monnerat's avatar Gabriel Monnerat

Add condition to display "Sign out" only have one user authenticated

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43893 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 13c22d1a
......@@ -43,12 +43,14 @@
<div id="preference_dialog" title="UNG Preferences"></div> \n
<tal:block tal:condition="here/portal_membership/isAnonymousUser">\n
<a id="login" tal:attributes="href string: #">Sign in</a>\n
</tal:block>\n
</tal:block>\n
<tal:block tal:condition="python:not here.portal_membership.isAnonymousUser()">\n
<a tal:content="here/portal_membership/getAuthenticatedMember"/>\n
</tal:block>\n
| <a id="settings" href="#">Settings</a> | <a id="help" href="#">Help</a> |\n
<a tal:attributes="href string:${portal_path}/WebSite_logout">Sign out</a>\n
| <a id="settings" href="#">Settings</a> | <a id="help" href="#">Help</a>\n
<tal:block tal:condition="python: not here.portal_membership.isAnonymousUser()">\n
| <a tal:attributes="href string:${portal_path}/WebSite_logout">Sign out</a>\n
</tal:block>\n
</tal:block>
]]></unicode> </value>
......
259
\ No newline at end of file
260
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment