Author: phuong_vu
Date: 2011-09-05 08:46:25 -0400 (Mon, 05 Sep 2011)
New Revision: 7303
Modified:
portal/branches/dom/web/portal/src/main/webapp/groovy/portal/webui/page/UISiteBody.gtmpl
Log:
[DOM] UISiteBody optimization
Modified:
portal/branches/dom/web/portal/src/main/webapp/groovy/portal/webui/page/UISiteBody.gtmpl
===================================================================
---
portal/branches/dom/web/portal/src/main/webapp/groovy/portal/webui/page/UISiteBody.gtmpl 2011-09-05
12:44:03 UTC (rev 7302)
+++
portal/branches/dom/web/portal/src/main/webapp/groovy/portal/webui/page/UISiteBody.gtmpl 2011-09-05
12:46:25 UTC (rev 7303)
@@ -3,68 +3,30 @@
UIPortalApplication uiPortalApp = _ctx.getRequestContext().getUIApplication();
int portalMode = uiPortalApp.getModeState();
%>
-<div class="UISiteBody" id="${uicomponent.id}">
- <div class="UIComponent UIComponentBlock">
-
+<div class="UISiteBody" id="${uicomponent.id}">
+ <div class="UIComponent UIComponentBlock">
<%if(portalMode == UIPortalApplication.APP_BLOCK_EDIT_MODE || portalMode ==
UIPortalApplication.CONTAINER_BLOCK_EDIT_MODE) {%>
- <div class="LAYOUT-BLOCK LAYOUT-SITEBODY DragControlArea">
- <div class="PageLayoutDecorator">
- <%/*Begin Top Decorator*/%>
- <div class="TopLeftPage">
- <div class="TopRightPage">
- <div class="TopCenterPage">
- <%=_ctx.appRes("UIPage.label.pageContent")%>
- </div>
- </div>
- </div>
-
- <%/*Begin Middle Decorator*/%>
- <div class="MiddleLeftPage">
- <div class="MiddleRightPage">
- <div class="MiddlePageBG">
- <div class="FixBug"><span></span></div>
- </div>
- </div>
- </div>
-
- <%/*Begin Bottom Decorator*/%>
- <div class="BottomLeftPage">
- <div class="BottomRightPage">
- <div class="BottomCenterPage">
- <div class="FixBug"><span></span></div>
- </div>
- </div>
- </div>
-
- </div>
+ <div class="LAYOUT-BLOCK LAYOUT-SITEBODY DragControlArea
PageLayoutDecorator">
+ <%/*Begin Top Decorator*/%>
+ <div class="LeftPage">
+ <div class="RightPage">
+ <div class="CenterPage">
+ <%=_ctx.appRes("UIPage.label.pageContent")%>
+ </div>
+ </div>
+ </div>
</div>
<%} else {%>
<div class="VIEW-SITEBODY VIEW-BLOCK"
id="SITEBODY-VIEW-BLOCK">
<% if(uicomponent.getUIComponent() == null){ %>
- <div class="Empty">
- <div class="UIPortalWarning">
- <div class="LeftTopWarning">
- <div class="RightTopWarning">
- <div class="CenterTopWaring">
- <div
class="TitleWaring"><%=_ctx.appRes("UIPageBody.msg.pageNotFoundLine1")%></div>
- </div>
- </div>
- </div>
- <div class="LeftMiddleWarning">
- <div class="RightMiddleWarning">
- <div class="WarningContent">
- <div
class="Icon"><%=_ctx.appRes("UIPageBody.msg.pageNotFoundLine2")%></div>
- <div
class="Icon"><%=_ctx.appRes("UIPageBody.msg.pageNotFoundLine3")%></div>
- <div
class="Icon"><%=_ctx.appRes("UIPageBody.msg.pageNotFoundLine4")%></div>
- </div>
- </div>
- </div>
- <div class="LeftBottomWarning">
- <div class="RightBottomWarning">
- <div
class="CenterBottomWaring"><span></span></div>
- </div>
- </div>
- </div>
+ <div class="UIPortalWarning Empty">
+
+ <h3
class="TitleWaring"><%=_ctx.appRes("UIPageBody.msg.pageNotFoundLine1")%></h3>
+ <ul>
+ <li
class="Icon"><%=_ctx.appRes("UIPageBody.msg.pageNotFoundLine2")%></li>
+ <li
class="Icon"><%=_ctx.appRes("UIPageBody.msg.pageNotFoundLine3")%></li>
+ <li
class="Icon"><%=_ctx.appRes("UIPageBody.msg.pageNotFoundLine4")%></li>
+ </ul>
</div>
<% } else { uicomponent.renderChildren(); } %>
</div>
@@ -75,5 +37,5 @@
</div>
<div class="UISiteBodyMask" style="position:absolute;
display:none;"><span></span></div>
<%} %>
- </div>
+ </div>
</div>
Show replies by date