Author: hoang_to
Date: 2010-12-09 23:01:37 -0500 (Thu, 09 Dec 2010)
New Revision: 5545
Modified:
exo/portal/branches/webos-gatein-branch/portlet/exoadmin/src/main/webapp/groovy/admintoolbar/webui/component/UIAdminToolbarPortlet.gtmpl
Log:
Hardcode to enable editBackground features in WebOS, as the navigational property features
has not been integrated into EXOGTN
Modified:
exo/portal/branches/webos-gatein-branch/portlet/exoadmin/src/main/webapp/groovy/admintoolbar/webui/component/UIAdminToolbarPortlet.gtmpl
===================================================================
---
exo/portal/branches/webos-gatein-branch/portlet/exoadmin/src/main/webapp/groovy/admintoolbar/webui/component/UIAdminToolbarPortlet.gtmpl 2010-12-10
03:13:12 UTC (rev 5544)
+++
exo/portal/branches/webos-gatein-branch/portlet/exoadmin/src/main/webapp/groovy/admintoolbar/webui/component/UIAdminToolbarPortlet.gtmpl 2010-12-10
04:01:37 UTC (rev 5545)
@@ -2,6 +2,7 @@
import org.exoplatform.toolbar.webui.component.UIAdminToolbarPortlet;
import org.exoplatform.web.application.JavascriptManager;
import org.exoplatform.portal.config.model.PageNavigation;
+ import org.exoplatform.portal.config.model.PageNode;
import org.exoplatform.services.organization.User;
import org.exoplatform.services.security.ConversationState;
import org.exoplatform.web.CacheUserProfileFilter;
@@ -9,6 +10,7 @@
import org.exoplatform.portal.webui.util.Util;
import org.exoplatform.portal.webui.workspace.UIPortalApplication;
import org.exoplatform.portal.webui.page.UIPage;
+ import org.exoplatform.portal.webui.portal.UIPortal;
def rcontext = (PortletRequestContext)_ctx.getRequestContext();
@@ -66,7 +68,16 @@
<% } %>
<% if(userCouldEditPortal){ %>
- <% if("classicWebosPage".equals(navigation_uri)){ %>
+ <%
+
+ UIPortal uiPortal = Util.getUIPortalApplication().getShowedUIPortal();
+ PageNode currentNode = uiPortal.getSelectedNode();
+
+ if(currentNode != null &&
"classicWebosPage".equals(currentNode.getName())){
+
+ %>
+
+
<div class="MenuItem">
<a
href="javascript:ajaxGet(eXo.env.server.createPortalURL('UIWorkingWorkspace',
'EditBackground', true))" title="" class="ItemIcon
EditSiteIcon">Edit Background</a>
</div>
Show replies by date