[Erp5-report] r22776 - in /erp5/trunk/bt5/erp5_web: SkinTemplateItem/portal_skins/erp5_web_...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jul 31 10:24:25 CEST 2008
Author: ivan
Date: Thu Jul 31 10:24:24 2008
New Revision: 22776
URL: http://svn.erp5.org?rev=22776&view=rev
Log:
Improve code to show label only if in reallity there's any information to show.
Add CSS class for styling.
Modified:
erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Document_viewPopupTemplate.xml
erp5/trunk/bt5/erp5_web/bt/revision
Modified: erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Document_viewPopupTemplate.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Document_viewPopupTemplate.xml?rev=22776&r1=22775&r2=22776&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Document_viewPopupTemplate.xml (original)
+++ erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Document_viewPopupTemplate.xml Thu Jul 31 10:24:24 2008
@@ -45,32 +45,57 @@
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
-<span class="popup_label" i18n:translate="" i18n:domain="ui">Owner(s):</span>\n
-<tal:block tal:replace="options/owner|nothing"/>\n
-<br/>\n
-\n
-<span class="popup_label" i18n:translate="" i18n:domain="ui">Last modified:</span>\n
-<tal:block tal:replace="options/modification_date|nothing"/>\n
-<br/>\n
-\n
-<span class="popup_label" i18n:translate="" i18n:domain="ui">Released:</span>\n
-<tal:block tal:replace="options/release_date|nothing"/>\n
-<br/>\n
-\n
-<span class="popup_label" i18n:translate="" i18n:domain="ui">Published:</span>\n
-<tal:block tal:replace="options/publication_date|nothing"/>\n
-<br/>\n
-\n
-<span class="popup_label" i18n:translate="" i18n:domain="ui">Status:</span>\n
-<tal:block tal:replace="options/status|nothing"/>\n
-<br/>\n
-\n
-<span class="popup_label" i18n:translate="" i18n:domain="ui">Group:</span>\n
-<tal:block tal:replace="options/group|nothing"/>\n
-<br/>\n
-\n
-<span class="popup_label" i18n:translate="" i18n:domain="ui">Project:</span>\n
-<tal:block tal:replace="options/project|nothing"/>
+<tal:block tal:define="owner python: options.get(\'owner\', None);\n
+ modification_date python: options.get(\'modification_date\', None);\n
+ release_date python: options.get(\'release_date\', None);\n
+ publication_date python: options.get(\'publication_date\', None);\n
+ status python: options.get(\'status\', None);\n
+ group python: options.get(\'group\', None);\n
+ project python: options.get(\'project\', None);">\n
+ \n
+ <div class="popup_row" tal:condition="owner">\n
+ <span class="popup_label" \n
+ i18n:translate="" i18n:domain="ui">Owners:</span>\n
+ <tal:block tal:replace="owner|nothing"/>\n
+ </div> \n
+ \n
+ <div class="popup_row" tal:condition="modification_date">\n
+ <span class="popup_label" \n
+ i18n:translate="" i18n:domain="ui">Last modified:</span>\n
+ <tal:block tal:replace="modification_date|nothing"/>\n
+ </div>\n
+ \n
+ <div class="popup_row" tal:condition="release_date">\n
+ <span class="popup_label" \n
+ i18n:translate="" i18n:domain="ui">Released:</span>\n
+ <tal:block tal:replace="release_date|nothing"/>\n
+ </div>\n
+ \n
+ <div class="popup_row" tal:condition="publication_date"> \n
+ <span class="popup_label" \n
+ i18n:translate="" i18n:domain="ui">Published:</span>\n
+ <tal:block tal:replace="publication_date|nothing"/>\n
+ </div>\n
+ \n
+ <div class="popup_row" tal:condition="status"> \n
+ <span class="popup_label" \n
+ i18n:translate="" i18n:domain="ui">Status:</span>\n
+ <tal:block tal:replace="status|nothing"/>\n
+ </div>\n
+ \n
+ <div class="popup_row" tal:condition="group">\n
+ <span class="popup_label" \n
+ i18n:translate="" i18n:domain="ui">Group:</span>\n
+ <tal:block tal:replace="group|nothing"/>\n
+ </div>\n
+ \n
+ <div class="popup_row" tal:condition="project">\n
+ <span class="popup_label" \n
+ i18n:translate="" i18n:domain="ui">Project:</span>\n
+ <tal:block tal:replace="project|nothing"/>\n
+ </div>\n
+ \n
+</tal:block>
]]></string> </value>
</item>
Modified: erp5/trunk/bt5/erp5_web/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/bt/revision?rev=22776&r1=22775&r2=22776&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/bt/revision (original)
+++ erp5/trunk/bt5/erp5_web/bt/revision Thu Jul 31 10:24:24 2008
@@ -1,1 +1,1 @@
-684
+686
More information about the Erp5-report
mailing list