Author: jmorliaguet
Date: Tue Dec 13 16:03:33 2005
New Revision: 2028

Modified:
   cpsskins/branches/jmo-perspectives/engines/sitedesigner/site_designer.pt
Log:

- simplification, removed harcoded list of resource names



Modified: 
cpsskins/branches/jmo-perspectives/engines/sitedesigner/site_designer.pt
==============================================================================
--- cpsskins/branches/jmo-perspectives/engines/sitedesigner/site_designer.pt    
(original)
+++ cpsskins/branches/jmo-perspectives/engines/sitedesigner/site_designer.pt    
Tue Dec 13 16:03:33 2005
@@ -22,7 +22,8 @@
 
       <h1>Site designer</h1>
 
-      <table class="panel" cellpadding="0" cellspacing="0">
+      <table class="panel" cellpadding="0" cellspacing="0"
+             tal:define="info context/@@getSettingInfo">
         <tr>
           <td class="first">
             <h2>Settings</h2>
@@ -30,7 +31,7 @@
               <img class="icon"
                    src="/++skin++cpsskins/@@/++resource++settings-48.png" />
               <ul>
-                <li tal:repeat="subsection python:[u'perspective', u'style']">
+                <li tal:repeat="subsection info">
                   <a class="section"
                      tal:attributes="href 
string:@@setSelection?subsection=$subsection"
                      tal:content="subsection" i18n:translate="" />
@@ -44,7 +45,7 @@
             <h2 tal:content="subsection" i18n:translate="" />
             <div class="sections">
 
-            <ul tal:define="setting_info context/@@getSettingInfo">
+            <ul tal:define="setting_info info">
               <li tal:repeat="info setting_info/?subsection|nothing">
                 <tal:block content="info/setting/title" />
                 <tal:block define="name info/name;
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to