Author: mor
Date: Thu Sep 17 12:28:54 2009
New Revision: 816165
URL:
http://svn.apache.org/viewvc?rev=816165&view=revLog:
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="<@ofbizUrl>orderstatus?orderId=${orderHeader.orderId}</@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="<@ofbizUrl>orderstatus?orderId=${porderHeader.orderId}</@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>