Author: chathura
Date: Thu Feb  7 01:26:18 2008
New Revision: 13388

Log:


Fixed date formating issue in versions view.
Fixed REGISTRY 134.



Modified:
   trunk/registry/modules/webapps/src/main/webapp/admin/registry-resources.jsp
   trunk/registry/modules/webapps/src/main/webapp/admin/versions.jsp

Modified: 
trunk/registry/modules/webapps/src/main/webapp/admin/registry-resources.jsp
==============================================================================
--- trunk/registry/modules/webapps/src/main/webapp/admin/registry-resources.jsp 
(original)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/registry-resources.jsp 
Thu Feb  7 01:26:18 2008
@@ -138,7 +138,7 @@
     
         <tr><th style="width:140px;">Created:</th><td 
style="width:170px;"><%=details.getFormattedCreatedOn()%></td><th>Author:</th><td><%=details.getAuthor()%></td></tr>
         <tr><th>Last 
Updated:</th><td><%=details.getFormattedLastModified()%></td><th>By:</th><td><%=details.getLastUpdater()%></td></tr>
-        <tr><th>Media Type:</th><td colspan="3"><% if (details.getMediaType() 
!= null) { %><%=details.getMediaType()%><% } else { %>Unknown<% } %></td> </tr>
+        <tr><th>Media Type:</th><td colspan="3"><% if (details.getMediaType() 
!= null && details.getMediaType().length() != 0) { 
%><%=details.getMediaType()%><% } else { %>Unknown<% } %></td> </tr>
         <% if (details.isCollection()) { %>
         <tr><th>Permalink:</th><td colspan="3"><a 
href="/wso2registry/web<%=details.getPermalink()%>"><%=details.getServerBaseURL()%>/wso2registry/web<%=details.getPermalink()%></a></td></tr>
         <% } else { %>

Modified: trunk/registry/modules/webapps/src/main/webapp/admin/versions.jsp
==============================================================================
--- trunk/registry/modules/webapps/src/main/webapp/admin/versions.jsp   
(original)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/versions.jsp   Thu Feb 
 7 01:26:18 2008
@@ -76,7 +76,7 @@
                 %>
                 <tr>
                     <td><%=versionPath.getVersionNumber()%></td>
-                    <td><%=versionPath.getUpdatedOn().toString()%></td>
+                    
<td><%=CommonUtil.formatDate(versionPath.getUpdatedOn())%></td>
                     <td><%=versionPath.getUpdater()%></td>
                     <td>
                         <a 
href="/wso2registry/web<%=versionPath.getCompleteVersionPath()%>" 
title="Details">Details <img src="/wso2registry/admin/images/icon-details.jpg" 
border="0" hspace="3" /></a>

_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev

Reply via email to