Author: chanaka
Date: Sun Dec  9 21:01:52 2007
New Revision: 10751

Log:

alignment issues fixed

Added:
   trunk/registry/modules/webapps/src/main/webapp/admin/images/ajax-loader.gif  
 (contents, props changed)
Modified:
   trunk/registry/modules/webapps/src/main/webapp/admin/registry-resources.jsp

Added: 
trunk/registry/modules/webapps/src/main/webapp/admin/images/ajax-loader.gif
==============================================================================
Binary file. No diff available.

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 
Sun Dec  9 21:01:52 2007
@@ -42,7 +42,7 @@
 <% } %>
 <div class="breadcrumb">
     <%
-        Iterator iNavPaths = details.getNavigatablePaths().iterator();
+        Iterator iNavPaths = collection.getNavigatablePaths().iterator();
         while (iNavPaths.hasNext()) {
             ResourcePath resourcePath = (ResourcePath) iNavPaths.next();
     %>
@@ -55,18 +55,17 @@
 
 <!-- Display the details of main node -->
 <div class="resource-head">
-    <% if (details.isCollection()) { %>
     <a href="/wso2registry/web<%=details.getPath()%>" class="folder-small 
headding1"><%=details.getName()%></a>
-    <% } else { %>
-    <a href="/wso2registry/web<%=details.getPath()%>" class="resource-small 
headding1"><%=details.getName()%></a>
-    <% } %>
-
+    
     <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
         <tr>
-            <td><strong>Created: 
</strong><%=details.getCreatedOn().toString()%><strong> Author: 
</strong><%=details.getAuthor()%></td><td align="right"><div 
id="ratingDiv">Rating...</div></td>
-        </tr>
-        <tr>
-            <td><strong>Last Updated: 
</strong><%=details.getLastModified().toString()%><strong> 
By:</strong><%=details.getLastUpdater()%></td><td align="right">Avarage User 
Rating:</td>
+            <td>
+               <div><strong>Created: 
</strong><%=details.getCreatedOn().toString()%><strong> Author: 
</strong><%=details.getAuthor()%></div>
+               <div><strong>Last Updated: 
</strong><%=details.getLastModified().toString()%><strong> 
By:</strong><%=details.getLastUpdater()%></div>
+            </td>
+            <td align="right">
+               <div id="ratingDiv"><img 
src="/wso2registry/admin/images/ajax-loader.gif" /></div>
+            </td>
         </tr>
     </table>
 </div>
@@ -184,7 +183,7 @@
             ResourceData resourceData = (ResourceData) iterator.next();
     %>
     <tr id="1">
-        <td><% if (resourceData.getResourceType() == ResourceData.COLLECTION) 
{ %><a href="/wso2registry/web/<%=resourceData.getRelativePath()%>" 
class="folder-small"><% } else { %><a 
href="/wso2registry/web/<%=resourceData.getRelativePath()%>" 
class="resource-small"><% } %><%=resourceData.getName()%></a></td>
+        <td><a href="/wso2registry/web/<%=resourceData.getRelativePath()%>" 
class="folder-small"><%=resourceData.getName()%></a></td>
         <td><%=resourceData.getCreatedOn()%></td>
         <td><%=resourceData.getAuthorUserName()%></td>
         <td>
@@ -283,31 +282,31 @@
 
     <div class="title-heading" style="margin-top:5px;">Versions</div>
 
-    <div class="resource-content">
-        <table cellpadding="0" cellspacing="0" border="0" style="width:100%" >
-            <tr>
-                <th align="left">Version</th>
-                <th align="left">Updated by</th>
-                <th align="left">Updated on</th>
-                <th colspan="2"></th>
-            </tr>
-
+    
+        
+            
+<div class="resource-content">
             <%
                 Iterator iVersions = details.getVersionPaths().iterator();
                 while (iVersions.hasNext()) {
                     VersionPath versionPath = (VersionPath) iVersions.next();
             %>
-
-            <tr>
-                
<td><%=versionPath.getVersionNumber()%></td><td><%=versionPath.getUpdater()%></td><td><%=versionPath.getUpdatedOn().toString()%></td>
-                <td align="right"><a 
href="/wso2registry/web<%=versionPath.getCompleteVersionPath()%>" 
title="Details" style="margin-left:5px;"><img 
src="/wso2registry/admin/images/icon-details.gif" border="0" hspace="3" 
/></a></td>
-                <td align="right"><a href="#" title="Restore" 
style="margin-left:5px;"><img src="/wso2registry/admin/images/icon-restore.gif" 
border="0" /></a></td>
-            </tr>
-
+               
+                       <h3>Version <%=versionPath.getVersionNumber()%></h3>
+                       
+                       <strong style="color:#696969;">Last 
Modified:</strong><br>
+                       <%=versionPath.getUpdatedOn().toString()%> 
+                       <br><strong style="color:#696969;">By:</strong> 
<%=versionPath.getUpdater()%>
+                       <br>
+                       <div style="margin-bottom:10px;">
+                               <a 
href="/wso2registry/web<%=versionPath.getCompleteVersionPath()%>" 
title="Details">Details <img src="/wso2registry/admin/images/icon-details.gif" 
border="0" hspace="3" /></a>
+                               <a href="#" title="Restore" 
style="margin-left:5px;">Restore <img 
src="/wso2registry/admin/images/icon-restore.gif" border="0" /></a>
+                       </div>
+                       
+               
             <% } %>
-
-        </table>
-    </div>
+</div>
+        
 </td>
 </tr>
 </table>

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

Reply via email to