From 865de092c4c8caa1daa1aadc1d93184ca4a3a785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Mon, 29 Mar 2010 15:25:32 +0000 Subject: [PATCH] if no list_action are defined on listbox, don't display link. Make this available for all list style (see http://svn.erp5.org/?view=revision&revision=26172 ) git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34192 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_gadget/ListBox_asListStyleHTML.xml | 11 ++++++++--- bt5/erp5_knowledge_pad/bt/revision | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ListBox_asListStyleHTML.xml b/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ListBox_asListStyleHTML.xml index 9d583e2be4..d7930b4241 100644 --- a/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ListBox_asListStyleHTML.xml +++ b/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ListBox_asListStyleHTML.xml @@ -132,16 +132,21 @@ <a class="right" tal:attributes="onclick python:real_context.KnowledgePad_generateAjaxCall(context_url+\'/\'+form_id,box,box_id, {}, 1)"><img alt="" tal:attributes="onload python:\'if(\\\'\'+rss_title.replace(\'\\\'\',\'\')+\'\\\'==\\\'Please enter a valid Rss or Atom url in the edit form\\\'){showElement(\\\'edit_form_\'+box_id+\'\\\');;}\'" src="refresh.png"/></a>\n \n <!-- Feed Title -->\n -\n <tal:block tal:condition="anonymous">\n - <a class="title"\n + <a class="title" tal:condition="python: here.field.get_value(\'list_action\')"\n tal:attributes="href rss_link; target string:_blank; id python:\'rss_title_\'+box_id"\n tal:content="rss_title"/>\n + <span class="title" tal:condition="python: not here.field.get_value(\'list_action\')"\n + tal:attributes="id python:\'rss_title_\'+box_id"\n + tal:content="rss_title"/>\n </tal:block>\n <tal:block tal:condition="not: anonymous">\n - <a class="title"\n + <a class="title" tal:condition="python: here.field.get_value(\'list_action\')"\n tal:attributes="href rss_link; target string:_blank; id python:\'rss_title_\'+box_id"\n tal:content="python:real_context.Base_formatRssTitleWithUnreadItemCount(rss_title=rss_title,selection_name=selection_name,total_line=total_line)"/>\n + <span class="title" tal:condition="python:not here.field.get_value(\'list_action\')"\n + tal:attributes="id python:\'rss_title_\'+box_id"\n + tal:content="python:real_context.Base_formatRssTitleWithUnreadItemCount(rss_title=rss_title,selection_name=selection_name,total_line=total_line)"/>\n </tal:block>\n \n <p class="clear"></p>\n diff --git a/bt5/erp5_knowledge_pad/bt/revision b/bt5/erp5_knowledge_pad/bt/revision index df2d2b6cee..9889789bab 100644 --- a/bt5/erp5_knowledge_pad/bt/revision +++ b/bt5/erp5_knowledge_pad/bt/revision @@ -1 +1 @@ -497 \ No newline at end of file +499 \ No newline at end of file -- 2.30.9