Author: julien(a)jboss.com
Date: 2007-02-28 08:28:17 -0500 (Wed, 28 Feb 2007)
New Revision: 6455
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/instances.xhtml
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/portlets.xhtml
Log:
highlight selected portlet or instance in the list
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/instances.xhtml
===================================================================
---
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/instances.xhtml 2007-02-28
13:19:23 UTC (rev 6454)
+++
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/instances.xhtml 2007-02-28
13:28:17 UTC (rev 6455)
@@ -21,7 +21,7 @@
</thead>
<tbody>
<c:forEach items="#{instancemgr.instances}"
var="instance" varStatus="status">
- <tr class="#{status.index % 2 == 0 ? 'portlet-section-body'
: 'portlet-section-alternate'}">
+ <tr class="#{instance.id == instancemgr.selectedId ?
'portlet-section-selected' : (status.index % 2 == 0 ?
'portlet-section-body' : 'portlet-section-alternate')}">
<td>
<h:commandLink
action="#{instancemgr.selectInstance}">
<h:outputText value="#{instance.id}"/>
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/portlets.xhtml
===================================================================
---
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/portlets.xhtml 2007-02-28
13:19:23 UTC (rev 6454)
+++
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/jsp/management/portlets.xhtml 2007-02-28
13:28:17 UTC (rev 6455)
@@ -34,7 +34,7 @@
</thead>
<tbody>
<c:forEach items="#{portletmgr.portlets}"
var="portlet" varStatus="status">
- <tr class="#{status.index % 2 == 0 ?
'portlet-section-body' : 'portlet-section-alternate'}">
+ <tr class="#{portlet.context.id ==
portletmgr.selectedPortlet.context.id ? 'portlet-section-selected' : (status.index
% 2 == 0 ? 'portlet-section-body' :
'portlet-section-alternate')}">
<td>
<h:commandLink
action="#{portletmgr.selectPortlet}">
Show replies by date