You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mo...@apache.org on 2009/09/17 14:28:55 UTC

svn commit: r816165 - /ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/orderhistory.ftl

Author: mor
Date: Thu Sep 17 12:28:54 2009
New Revision: 816165

URL: http://svn.apache.org/viewvc?rev=816165&view=rev
Log:
Optimized code.

Modified:
    ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/orderhistory.ftl

Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/orderhistory.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/orderhistory.ftl?rev=816165&r1=816164&r2=816165&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/orderhistory.ftl (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/orderhistory.ftl Thu Sep 17 12:28:54 2009
@@ -32,6 +32,7 @@
         </tr>
       </thead>
       <tbody>
+        <#if orderHeaderList?has_content>
         <#list orderHeaderList as orderHeader>
           <#assign status = orderHeader.getRelatedOneCache("StatusItem") />
           <tr>
@@ -53,7 +54,7 @@
             <td><a href="<@o...@ofbizUrl>" class="button">${uiLabelMap.CommonView}</a></td>
           </tr>
         </#list>
-        <#if !orderHeaderList?has_content>
+        <#else>
           <tr><td colspan="9">${uiLabelMap.OrderNoOrderFound}</td></tr>
         </#if>
       </tbody>
@@ -83,8 +84,7 @@
               <td><a href="<@o...@ofbizUrl>" class="buttont">${uiLabelMap.CommonView}</a></td>
             </tr>
           </#list>
-        </#if>
-        <#if !porderHeaderList?has_content>
+        <#else>
           <tr><td colspan="9">${uiLabelMap.OrderNoOrderFound}</td></tr>
         </#if>
       </tbody>
@@ -103,6 +103,7 @@
         </tr>
       </thead>
       <tbody>
+        <#if downloadOrderRoleAndProductContentInfoList?has_content>
         <#list downloadOrderRoleAndProductContentInfoList as downloadOrderRoleAndProductContentInfo>
           <tr>
             <td>${downloadOrderRoleAndProductContentInfo.orderId}</td>
@@ -114,7 +115,7 @@
             </td>
           </tr>
         </#list>
-        <#if !downloadOrderRoleAndProductContentInfoList?has_content>
+        <#else>
           <tr><td colspan="9">${uiLabelMap.EcommerceDownloadNotFound}</td></tr>
         </#if>
       </tbody>