[Erp5-report] r39280 gabriel - in /experimental/bt5/erp5_web_ung_theme: SkinTemplateItem/po...
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Oct 18 15:50:24 CEST 2010
Author: gabriel
Date: Mon Oct 18 15:50:24 2010
New Revision: 39280
URL: http://svn.erp5.org?rev=39280&view=rev
Log:
- add features to "login" and "logout" buttons
Modified:
experimental/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/template_erp5_web_ung.xml
experimental/bt5/erp5_web_ung_theme/bt/revision
Modified: experimental/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/template_erp5_web_ung.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/template_erp5_web_ung.xml?rev=39280&r1=39279&r2=39280&view=diff
==============================================================================
--- experimental/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/template_erp5_web_ung.xml [utf8] (original)
+++ experimental/bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/template_erp5_web_ung.xml [utf8] Mon Oct 18 15:50:24 2010
@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
- <tuple>
- <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
- <tuple/>
- </tuple>
+ <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
</pickle>
<pickle>
<dictionary>
@@ -39,14 +36,15 @@
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
+<html>\n
<body>\n
-\n
<tal:block metal:define-macro="master">\n
<tal:block tal:define="website here/getWebSiteValue;\n
enctype string:multipart/form-data;\n
portal_path python:website.absolute_url();\n
current_main_section here/WebSite_getMainSection;\n
- editable request/editable_mode | python: 0;\n
+ editable request/editable_mode | python: 1;\n
+ person python: here.ERP5Site_getAuthenticatedMemberPersonValue();\n
list_mode list_mode | nothing;\n
dialog_mode dialog_mode | nothing;\n
has_no_layout python: layout_form is None;\n
@@ -54,19 +52,23 @@
dummy python: request.set(\'list_mode\', list_mode);\n
global css_list_template css_list_template | python:[];\n
global css_list_template python:css_list_template + [\n
- \'%s/ung_theme.css\' % portal_path,\n
-];\n
-">\n
+ \'%s/ung_theme.css\' % portal_path,];">\n
<tal:block metal:use-macro="here/template_erp5_xhtml_style/macros/master">\n
- <tal:block metal:fill-slot="layout">\n
-\n
+ <tal:block metal:fill-slot="layout">\n
<div class="container">\n
<div class="header">\n
<div class="header-navigation">\n
<a href="#">Email</a> <a href="#">Documents</a> <a href="#">Calendar</a>\n
</div>\n
<div class="header-user">\n
- jp at tiolive.com | <a href="#">Settings</a> | <a href="#">Help</a> | <a href="#">Sign out</a>\n
+ <tal:block tal:condition="python: person is None">\n
+ <a tal:attributes="href string:${portal_path}/login_form">Sign in</a>\n
+ </tal:block>\n
+ <tal:block tal:condition="python: person is not None">\n
+ <a tal:content="person/getDefaultEmailText"/>\n
+ </tal:block>\n
+ | <a href="#">Settings</a> | <a href="#">Help</a> |\n
+ <a tal:attributes="href string:${portal_path}/logout">Sign out</a>\n
</div>\n
</div>\n
<div class="main-action-area">\n
@@ -116,19 +118,12 @@
</div>\n
</div>\n
</div>\n
-\n
</tal:block>\n
</tal:block>\n
</tal:block>\n
- </tal:block>\n
-\n
+</tal:block>\n
</body>\n
-\n
-\n
-\n
-\n
-\n
-
+</html>
]]></string> </value>
</item>
Modified: experimental/bt5/erp5_web_ung_theme/bt/revision
URL: http://svn.erp5.org/experimental/bt5/erp5_web_ung_theme/bt/revision?rev=39280&r1=39279&r2=39280&view=diff
==============================================================================
--- experimental/bt5/erp5_web_ung_theme/bt/revision [utf8] (original)
+++ experimental/bt5/erp5_web_ung_theme/bt/revision [utf8] Mon Oct 18 15:50:24 2010
@@ -1 +1 @@
-5
\ No newline at end of file
+6
\ No newline at end of file
More information about the Erp5-report
mailing list