svnno****@sourc*****
svnno****@sourc*****
2007年 4月 12日 (木) 12:19:05 JST
Revision: 38 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=38 Author: shinsuke Date: 2007-04-12 12:19:04 +0900 (Thu, 12 Apr 2007) Log Message: ----------- display portlet status correctly. Modified Paths: -------------- pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/portletmanager/PortletListPage.java pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/portletmanager/label.properties pal-admin/trunk/src/main/webapp/view/portletmanager/portletList.html -------------- next part -------------- Modified: pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/portletmanager/PortletListPage.java =================================================================== --- pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/portletmanager/PortletListPage.java 2007-04-12 03:04:40 UTC (rev 37) +++ pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/portletmanager/PortletListPage.java 2007-04-12 03:19:04 UTC (rev 38) @@ -186,4 +186,9 @@ return getStatus() == PALAdminConstants.PORTLET_APPLICATION_STATUS_STOPPED; } + public boolean isUnknown() + { + return !isRunning() && !isStopped(); + } + } Modified: pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/portletmanager/label.properties =================================================================== --- pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/portletmanager/label.properties 2007-04-12 03:04:40 UTC (rev 37) +++ pal-admin/trunk/src/main/resources/jp/sf/pal/admin/web/portletmanager/label.properties 2007-04-12 03:19:04 UTC (rev 38) @@ -12,3 +12,7 @@ stopPortlet= Stop Portlet undeployPortlet= Undeploy Portlet deletePortlet= Delete Portlet + +running=Running +stopped=Stopped +unknown=Unknown \ No newline at end of file Modified: pal-admin/trunk/src/main/webapp/view/portletmanager/portletList.html =================================================================== --- pal-admin/trunk/src/main/webapp/view/portletmanager/portletList.html 2007-04-12 03:04:40 UTC (rev 37) +++ pal-admin/trunk/src/main/webapp/view/portletmanager/portletList.html 2007-04-12 03:19:04 UTC (rev 38) @@ -58,7 +58,17 @@ <td class="portlet-section-body"><span id="name">PORTLET</span></td> <td class="portlet-section-body"><span id="version">VERSION</span></td> <td class="portlet-section-body"><span id="path">PATH</span></td> - <td class="portlet-section-body"><span id="status">STATUS</span></td> + <td class="portlet-section-body"> + <div id="isRunning" style="display:inline;"> + <label id="runningLabel">RUNNNING</label> + </div> + <div id="isStopped" style="display:inline;"> + <label id="stoppedLabel">STOPPED</label> + </div> + <div id="isUnknown" style="display:inline;"> + <label id="unknownLabel">UNKNOWN</label> + </div> + </td> <td class="portlet-section-alternate"> <div id="isStartAction" style="display:inline;"> <a id="goPortletActionConfirm" href="portletActionConfirm.html?fixed_crudType=2&fixed_action=start&name=name"><span id="startLabel">Start</span></a>