Author: taylor Date: Sat Dec 12 19:30:08 2009 New Revision: 889963 URL: http://svn.apache.org/viewvc?rev=889963&view=rev Log: https://issues.apache.org/jira/browse/JS2-1084 quick patch to add close button to portlet actions. Will refactor this more formerly in JS2-1059
Modified: portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/decorations/portlet/decorator.vm Modified: portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/decorations/portlet/decorator.vm URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/decorations/portlet/decorator.vm?rev=889963&r1=889962&r2=889963&view=diff ============================================================================== --- portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/decorations/portlet/decorator.vm (original) +++ portals/jetspeed-2/portal/trunk/applications/jetspeed/src/main/webapp/decorations/portlet/decorator.vm Sat Dec 12 19:30:08 2009 @@ -37,9 +37,13 @@ $!jetspeed.getTitle($f) </div> - - #PortletActionBar($decoration) - + #set($_actions = $decoration.actions) + <div class="PActionBar"> + #foreach ($_action in $_actions) + <a href="${_action.Action}" title="${_action.Name}" class="action portlet-action" #if($_action.target)target="$_action.target"#end><img src="$request.contextPath/${_action.link}" alt="${_action.Alt}" border="0" /></a> + #end + <span style='cursor: pointer; z-index: 1000;' id='jetspeed-close-${f.id}' title="close" class="portlet-action-close"><img src="${request.contextPath}/decorations/portlet/jetspeed/images/close.gif" alt="Close" border="0" /></span> + </div> </div> #end #if (!$jetspeed.isHidden($f) && !$hidePortlet && $jetspeed.WindowState.toString() != "minimized") --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-dev-unsubscr...@portals.apache.org For additional commands, e-mail: jetspeed-dev-h...@portals.apache.org