[Erp5-report] r34192 jerome - in /erp5/trunk/bt5/erp5_knowledge_pad: SkinTemplateItem/porta...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Mar 29 17:25:34 CEST 2010


Author: jerome
Date: Mon Mar 29 17:25:32 2010
New Revision: 34192

URL: http://svn.erp5.org?rev=34192&view=rev
Log:
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 )

Modified:
    erp5/trunk/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ListBox_asListStyleHTML.xml
    erp5/trunk/bt5/erp5_knowledge_pad/bt/revision

Modified: erp5/trunk/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ListBox_asListStyleHTML.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ListBox_asListStyleHTML.xml?rev=34192&r1=34191&r2=34192&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ListBox_asListStyleHTML.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_gadget/ListBox_asListStyleHTML.xml [utf8] Mon Mar 29 17:25:32 2010
@@ -132,15 +132,20 @@
           <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

Modified: erp5/trunk/bt5/erp5_knowledge_pad/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_knowledge_pad/bt/revision?rev=34192&r1=34191&r2=34192&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_knowledge_pad/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_knowledge_pad/bt/revision [utf8] Mon Mar 29 17:25:32 2010
@@ -1,1 +1,1 @@
-497
+499




More information about the Erp5-report mailing list