Commit 768868af authored by Sebastien Robin's avatar Sebastien Robin

2009-06-03 Seb

* use a preference in order to enable/disable acknowledgeable messages on the top of every page. Like this we loose a less as possible performance when this feature is not used

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27353 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c098a3ab
......@@ -47,8 +47,11 @@
<div class="dialog_box">\n
<div class="list_dialog">\n
<tal:div content="structure item/text_content" />\n
<tal:block tal:repeat="aggregate_info item/aggregate_url_list | nothing">\n
<a tal:attributes="href python: aggregate_info[1]" tal:content="python: aggregate_info[0]">Some Document Title</a>\n
</tal:block>\n
</div>\n
<a tal:attributes="href item/acknowledge_url"><button>DISMISS</button></a>\n
<a tal:attributes="href item/acknowledge_url"><button i18n:translate="" i18n:domain="ui">DISMISS</button></a>\n
</div>\n
</tal:block>\n
</tal:block>\n
......@@ -67,7 +70,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>bulletin_board</string> </value>
<value> <string>acknowledgeable_message_render</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -69,9 +69,10 @@
global http_parameters python: portal.ERP5Site_renderHTTPParameterList(http_parameter_list);\n
global form nocall:form | nothing;\n
portal_preferences python: portal.portal_preferences;\n
global preferred_html_style_developper_mode portal_preferences/getPreferredHtmlStyleDevelopperMode;\n
global preferred_html_style_translator_mode portal_preferences/getPreferredHtmlStyleTranslatorMode;\n
global preferred_html_style_contextual_help portal_preferences/getPreferredHtmlStyleContextualHelp;\n
global preferred_html_style_developper_mode portal_preferences/getPreferredHtmlStyleDevelopperMode;\n
global preferred_html_style_translator_mode portal_preferences/getPreferredHtmlStyleTranslatorMode;\n
global preferred_html_style_contextual_help portal_preferences/getPreferredHtmlStyleContextualHelp;\n
global preferred_html_style_acknowledgeable_message portal_preferences/getPreferredHtmlStyleAcknowledgeableMessage;\n
global developper_shortcut_render python: (preferred_html_style_developper_mode or preferred_html_style_translator_mode) and portal.developper_shortcut_render;\n
global selected_language portal/Localizer/get_selected_language;\n
" />\n
......
......@@ -129,9 +129,11 @@ IDEAS:\n
</tal:block>\n
</div>\n
<p class="clear"></p>\n
<div id="bulletin_board">\n
<div tal:content="structure here/bulletin_board"/>\n
</div>\n
<tal:block tal:condition="preferred_html_style_acknowledgeable_message">\n
<div id="acknowledgeable_message_render">\n
<div tal:content="structure here/acknowledgeable_message_render"/>\n
</div>\n
</tal:block>\n
<div tal:content="request/portal_status_message | nothing" id="transition_message" />\n
<div id="information_area" tal:condition="request/field_errors | nothing"\n
i18n:translate="" i18n:domain="ui">\n
......
763
\ No newline at end of file
764
\ 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