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 @@ ...@@ -47,8 +47,11 @@
<div class="dialog_box">\n <div class="dialog_box">\n
<div class="list_dialog">\n <div class="list_dialog">\n
<tal:div content="structure item/text_content" />\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 </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 </div>\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
...@@ -67,7 +70,7 @@ ...@@ -67,7 +70,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>bulletin_board</string> </value> <value> <string>acknowledgeable_message_render</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -72,6 +72,7 @@ ...@@ -72,6 +72,7 @@
global preferred_html_style_developper_mode portal_preferences/getPreferredHtmlStyleDevelopperMode;\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_translator_mode portal_preferences/getPreferredHtmlStyleTranslatorMode;\n
global preferred_html_style_contextual_help portal_preferences/getPreferredHtmlStyleContextualHelp;\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 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 global selected_language portal/Localizer/get_selected_language;\n
" />\n " />\n
......
...@@ -129,9 +129,11 @@ IDEAS:\n ...@@ -129,9 +129,11 @@ IDEAS:\n
</tal:block>\n </tal:block>\n
</div>\n </div>\n
<p class="clear"></p>\n <p class="clear"></p>\n
<div id="bulletin_board">\n <tal:block tal:condition="preferred_html_style_acknowledgeable_message">\n
<div tal:content="structure here/bulletin_board"/>\n <div id="acknowledgeable_message_render">\n
<div tal:content="structure here/acknowledgeable_message_render"/>\n
</div>\n </div>\n
</tal:block>\n
<div tal:content="request/portal_status_message | nothing" id="transition_message" />\n <div tal:content="request/portal_status_message | nothing" id="transition_message" />\n
<div id="information_area" tal:condition="request/field_errors | nothing"\n <div id="information_area" tal:condition="request/field_errors | nothing"\n
i18n:translate="" i18n:domain="ui">\n i18n:translate="" i18n:domain="ui">\n
......
763 764
\ 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