[Erp5-report] r31615 nicolas.dumazet - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_st...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jan 7 06:30:53 CET 2010
Author: nicolas.dumazet
Date: Thu Jan 7 06:30:52 2010
New Revision: 31615
URL: http://svn.erp5.org?rev=31615&view=rev
Log:
Bug #653: dont show a New button if there are no Visible Allowed content types
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/change_log
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml?rev=31615&r1=31614&r2=31615&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml [utf8] Thu Jan 7 06:30:52 2010
@@ -179,12 +179,14 @@
<span class="image"></span>\n
<span class="description" i18n:translate="" i18n:domain="ui">Print</span>\n
</button>\n
- <button class="new" type="submit" title="New"\n
- tal:attributes="name python: list_mode and \'Folder_create:method\' or \'Base_createNewDocument:method\'"\n
- i18n:attributes="title" i18n:domain="ui">\n
- <span class="image"></span>\n
- <span class="description" i18n:translate="" i18n:domain="ui">New</span>\n
- </button>\n
+ <tal:block tal:condition="python: len(here.getVisibleAllowedContentTypeList()) > 0">\n
+ <button class="new" type="submit" title="New"\n
+ tal:attributes="name python: list_mode and \'Folder_create:method\' or \'Base_createNewDocument:method\'"\n
+ i18n:attributes="title" i18n:domain="ui">\n
+ <span class="image"></span>\n
+ <span class="description" i18n:translate="" i18n:domain="ui">New</span>\n
+ </button>\n
+ </tal:block>\n
<button class="clone" type="submit" title="Clone"\n
name="Base_createCloneDocument:method"\n
tal:condition="not: list_mode"\n
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/change_log?rev=31615&r1=31614&r2=31615&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/change_log [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/change_log [utf8] Thu Jan 7 06:30:52 2010
@@ -1,3 +1,6 @@
+2010-01-07 Nicolas Dumazet
+* Dont show a New button if there are no Visible Allowed Content Types
+
2009-12-11 Kazuhiko
* update FCKeditor to 2.6.5.
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision?rev=31615&r1=31614&r2=31615&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] Thu Jan 7 06:30:52 2010
@@ -1,1 +1,1 @@
-859
+860
More information about the Erp5-report
mailing list