Commit 439dfeca authored by Ivan Tyagov's avatar Ivan Tyagov

Show current logged in user otherwise it's too confusing for users.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39094 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 37730d60
No related merge requests found
...@@ -2,16 +2,13 @@ ...@@ -2,16 +2,13 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item> <item>
<key> <string>_Cacheable__manager_id</string> </key> <key> <string>_Cacheable__manager_id</string> </key>
<value> <string>web_section_user_ram_cache</string> </value> <value> <string>web_section_ram_cache</string> </value>
</item> </item>
<item> <item>
<key> <string>_bind_names</string> </key> <key> <string>_bind_names</string> </key>
...@@ -57,23 +54,26 @@ ...@@ -57,23 +54,26 @@
</tal:block>\n </tal:block>\n
\n \n
<tal:block tal:define="current_web_site python:request.get(\'current_web_site\', here);\n <tal:block tal:define="current_web_site python:request.get(\'current_web_site\', here);\n
portal_path python:request.get(\'current_web_site_url\', current_web_site.absolute_url());">\n portal_path python:request.get(\'current_web_site_url\', current_web_site.absolute_url());\n
user_name python: here.portal_membership.getAuthenticatedMember();\n
is_anonymous_user here/portal_membership/isAnonymousUser">\n
\n \n
<tal:block tal:condition="not:here/portal_membership/isAnonymousUser">\n <tal:block tal:condition="not:is_anonymous_user">\n
<a id="login-logout-link" \n <a id="login-logout-link" \n
href="#" tal:attributes="href string:${portal_path}/WebSite_logout"\n href="#" tal:attributes="href string:${portal_path}/WebSite_logout"\n
i18n:translate="" i18n:domain="ui">\n i18n:translate="" i18n:domain="ui"\n
Logout\n title="Log out"\n
</a>\n i18n:attributes="title"\n
tal:content="user_name"/>\n
</tal:block>\n </tal:block>\n
\n \n
<tal:block tal:condition="here/portal_membership/isAnonymousUser">\n <tal:block tal:condition="is_anonymous_user">\n
<a id="login-logout-link" \n <a id="login-logout-link" \n
href="#" \n href="#" \n
tal:attributes="href string:${portal_path}/login_form"\n tal:attributes="href string:${portal_path}/login_form"\n
i18n:translate="" i18n:domain="ui">\n i18n:translate="" i18n:domain="ui"\n
Login\n i18n:attributes="title"\n
</a>\n title="Log in">Login</a>\n
</tal:block>\n </tal:block>\n
\n \n
</tal:block>\n </tal:block>\n
......
1590 1591
\ No newline at end of file \ 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