Author: chanaka
Date: Sun Dec 16 16:50:34 2007
New Revision: 11180

Log:

add resource and add collection is place on the title (Entries) row

Modified:
   trunk/registry/modules/webapps/src/main/webapp/admin/css/main.css
   
trunk/registry/modules/webapps/src/main/webapp/admin/images/icon-add-folder.gif
   
trunk/registry/modules/webapps/src/main/webapp/admin/images/icon-add-resource.gif
   trunk/registry/modules/webapps/src/main/webapp/admin/registry-resources.jsp

Modified: trunk/registry/modules/webapps/src/main/webapp/admin/css/main.css
==============================================================================
--- trunk/registry/modules/webapps/src/main/webapp/admin/css/main.css   
(original)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/css/main.css   Sun Dec 
16 16:50:34 2007
@@ -41,6 +41,8 @@
 h3{
 padding:0px;
 margin:0px;
+color:#6f6f6f;
+margin-bottom:10px;
 }
 h4{
 padding:0px;
@@ -56,7 +58,7 @@
 }
 .h1resource{
 background-image:url(../images/icon-resource-small.gif);
-background-repeat:repeat-x;
+background-repeat:no-repeat;
 background-position:0px 5px;
 text-indent:30px;
 }
@@ -241,21 +243,20 @@
 background-image:url(../images/icon-add-resource.gif);
 background-repeat:no-repeat;
 background-position:0px 0px;
-text-indent:25px;
 display:block;
-color:#000000;
 text-decoration:none;
-line-height:18px;
+width:15px;
+height:16px;
+margin-bottom:2px;
 }
 .add-folder{
 background-image:url(../images/icon-add-folder.gif);
 background-repeat:no-repeat;
 background-position:0px 0px;
-text-indent:25px;
 display:block;
 text-decoration:none;
-margin-left:20px;
-line-height:18px;
+width:16px;
+height:13px;
 }
 .add-permisions{
 background-image:url(../images/icon-add-permisions.jpg);
@@ -343,6 +344,7 @@
 }
 .resource-content{
 width:100%;
+height:60px;
 border:solid 1px #e5daca;
 font: 11px Verdana, Arial, Helvetica, sans-serif;
 }
@@ -351,4 +353,11 @@
 }
 .header{
 margin-bottom:10px;
+}
+.toolBarTable{
+display:inline; 
+width:100px;
+}
+.toolBarTable td{
+padding-left:10px;
 }
\ No newline at end of file

Modified: 
trunk/registry/modules/webapps/src/main/webapp/admin/images/icon-add-folder.gif
==============================================================================
Binary files. No diff available.

Modified: 
trunk/registry/modules/webapps/src/main/webapp/admin/images/icon-add-resource.gif
==============================================================================
Binary files. 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 16 16:50:34 2007
@@ -160,10 +160,30 @@
                                        <h2> Entries </h2>
                                        </td>
                                        <td align="right" valign="top">
-                                               <a href="#" 
onclick="showHideCommon('entriesIconExpanded');showHideCommon('entriesIconMinimized');showHideCommon('entriesExpanded');showHideCommon('entriesMinimized');">
-                                               <img 
src="/wso2registry/admin/images/icon-expanded.gif" border="0" align="top" 
id="entriesIconExpanded"  />
-                                               <img 
src="/wso2registry/admin/images/icon-minimized.gif" border="0" align="top" 
id="entriesIconMinimized" style="display:none;" />
-                                               </a>
+                                       
+                       
+                                       <table cellpadding="0" cellspacing="0" 
border="0" class="toolBarTable" style="margin-top:-13px;">
+                                           <tr>
+                                           <% if (details.isCollection() && 
details.isPutAllowed()) { %>
+                                               <td>
+                                                   <a href="#" title="Add 
Resource" onclick="showHide('add-resource-div')"><img 
src="/wso2registry/admin/images/icon-add-resource.gif" border="0" align="top"  
/></a>
+                                               </td>
+                                       
+                                               <td valign="top">
+                                                   <a href="#" title="Add 
Collection" onclick="showHide('add-folder-div')"><img 
src="/wso2registry/admin/images/icon-add-folder.gif" border="0" align="top" 
style="margin-top:1px;"  /></a>
+                                               </td>
+                                           <% } %>
+                                               <td>
+                                                       <a href="#" 
onclick="showHideCommon('entriesIconExpanded');showHideCommon('entriesIconMinimized');showHideCommon('entriesExpanded');showHideCommon('entriesMinimized');">
+                                                       <img 
src="/wso2registry/admin/images/icon-expanded.gif" border="0" align="top" 
id="entriesIconExpanded"  />
+                                                       <img 
src="/wso2registry/admin/images/icon-minimized.gif" border="0" align="top" 
id="entriesIconMinimized" style="display:none;" />
+                                                       </a>
+                                               </td>
+                                           </tr>
+                                       </table>
+                                       
+                                       
+                                               
                                        </td>
                                        <td valign="top" align="right" 
style="width:14px; padding-top:0px;" ><img 
src="/wso2registry/admin/images/box1-righttop.jpg" /></td>
                                </tr>
@@ -177,21 +197,6 @@
                        
                        
                        <% if (details.isCollection()) { %>
-
-
-                       <% if (details.isPutAllowed()) { %>
-                       
-                       <table cellpadding="0" cellspacing="0" border="0">
-                           <tr>
-                               <td valign="top">
-                                   <a href="#" class="add-resource" 
onclick="showHide('add-resource-div')">Add Resource</a>
-                               </td>
-                       
-                               <td valign="top"><a href="#" class="add-folder" 
onclick="showHide('add-folder-div')">Add Folder</a></td>
-                           </tr>
-                       </table>
-                       
-                       <% } %>
                        
                        <!-- Add resource div -->
                        <div class="add-resource-div" id="add-resource-div" 
style="display:none;">
@@ -199,7 +204,7 @@
                                  enctype="multipart/form-data">
                        
                                <input type="hidden" name="path" 
value="<%=details.getPath()%>"/>
-                       
+                       <h3>Add Resource</h3>
                                <table width="100%"  border="0" cellspacing="0" 
cellpadding="0">
                         <tr>
                                        <td width="100" valign="top">Fetch 
content from URL</td>

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

Reply via email to