Author: buscob
Date: Fri Jan 23 12:57:00 2009
New Revision: 737186
URL:
http://svn.apache.org/viewvc?rev=737186&view=revLog:
Reduced code redundancy in the bluelight theme.
Modified:
ofbiz/trunk/themes/bluelight/includes/messages.ftl
Modified: ofbiz/trunk/themes/bluelight/includes/messages.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/themes/bluelight/includes/messages.ftl?rev=737186&r1=737185&r2=737186&view=diff==============================================================================
--- ofbiz/trunk/themes/bluelight/includes/messages.ftl (original)
+++ ofbiz/trunk/themes/bluelight/includes/messages.ftl Fri Jan 23 12:57:00 2009
@@ -31,50 +31,4 @@
</div>
</#if>
-<#if requestAttributes.errorMessageList?has_content><#assign errorMessageList=requestAttributes.errorMessageList></#if>
-<#if requestAttributes.eventMessageList?has_content><#assign eventMessageList=requestAttributes.eventMessageList></#if>
-<#if requestAttributes.serviceValidationException?exists><#assign serviceValidationException = requestAttributes.serviceValidationException></#if>
-<#if requestAttributes.uiLabelMap?has_content><#assign uiLabelMap = requestAttributes.uiLabelMap></#if>
-
-<#if !errorMessage?has_content>
- <#assign errorMessage = requestAttributes._ERROR_MESSAGE_?if_exists>
-</#if>
-<#if !errorMessageList?has_content>
- <#assign errorMessageList = requestAttributes._ERROR_MESSAGE_LIST_?if_exists>
-</#if>
-<#if !eventMessage?has_content>
- <#assign eventMessage = requestAttributes._EVENT_MESSAGE_?if_exists>
-</#if>
-<#if !eventMessageList?has_content>
- <#assign eventMessageList = requestAttributes._EVENT_MESSAGE_LIST_?if_exists>
-</#if>
-
-<#-- display the error messages -->
-<#if (errorMessage?has_content || errorMessageList?has_content)>
- <div class="content-messages errorMessage">
- <p>${uiLabelMap.CommonFollowingErrorsOccurred}:</p>
- <#if errorMessage?has_content>
- <p>${errorMessage}</p>
- </#if>
- <#if errorMessageList?has_content>
- <#list errorMessageList as errorMsg>
- <p>${errorMsg}</p>
- </#list>
- </#if>
- </div>
-</#if>
-
-<#-- display the event messages -->
-<#if (eventMessage?has_content || eventMessageList?has_content)>
- <div class="content-messages eventMessage">
- <p>${uiLabelMap.CommonFollowingOccurred}:</p>
- <#if eventMessage?has_content>
- <p>${eventMessage}</p>
- </#if>
- <#if eventMessageList?has_content>
- <#list eventMessageList as eventMsg>
- <p>${eventMsg}</p>
- </#list>
- </#if>
- </div>
-</#if>
+<#include "component://common/webcommon/includes/messages.ftl" />