Author: chanaka
Date: Wed Jan 23 05:55:03 2008
New Revision: 12772
Log:
new icons added
some usability issues fixed
Added:
trunk/registry/modules/webapps/src/main/webapp/admin/images/download-small.gif
(contents, props changed)
trunk/registry/modules/webapps/src/main/webapp/admin/images/icon-download.jpg
(contents, props changed)
trunk/registry/modules/webapps/src/main/webapp/admin/images/icon-feed-small.gif
(contents, props changed)
trunk/registry/modules/webapps/src/main/webapp/admin/images/icon-home.gif
(contents, props changed)
trunk/registry/modules/webapps/src/main/webapp/admin/images/icon-home.jpg
(contents, props changed)
trunk/registry/modules/webapps/src/main/webapp/admin/images/promotionBackground.jpg
(contents, props changed)
trunk/registry/modules/webapps/src/main/webapp/admin/images/top-toolbar-back.jpg
(contents, props changed)
Modified:
trunk/registry/modules/webapps/src/main/webapp/admin/ajax_desc.jsp
trunk/registry/modules/webapps/src/main/webapp/admin/css/main.css
trunk/registry/modules/webapps/src/main/webapp/admin/images/icon-folder-small.gif
trunk/registry/modules/webapps/src/main/webapp/admin/js/common.js
trunk/registry/modules/webapps/src/main/webapp/admin/registry-resources.jsp
Modified: trunk/registry/modules/webapps/src/main/webapp/admin/ajax_desc.jsp
==============================================================================
--- trunk/registry/modules/webapps/src/main/webapp/admin/ajax_desc.jsp
(original)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/ajax_desc.jsp Wed Jan
23 05:55:03 2008
@@ -11,6 +11,6 @@
<%
String description = (String)
request.getSession().getAttribute(UIConstants.AJAX_DESCRIPTION_STRING);
- if(description.length()<=1) description="<p class=\"helpText\">Empty
Description</p>";
+
%>
<%=description%>
\ No newline at end of file
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 Wed Jan
23 05:55:03 2008
@@ -15,9 +15,15 @@
.leftColoumSizer{
width:65%;
}
+.addColoum{
+width:176px;
+background-image:url(../images/promotionBackground.jpg);
+background-repeat:no-repeat;
+background-position:0px 0px;
+}
.page-sizer{
-padding-left:10px;
+padding-left:5px;
padding-right:10px;
}
a{
@@ -354,8 +360,7 @@
/* editing panel */
#descView{
border:solid 1px #e5daca;
-padding-left:5px;
-padding-right:5px;
+padding:5px;
}
#descView h3{
margin:auto;
@@ -493,3 +498,10 @@
.search-table td{
padding-right:5px;
}
+.top-toolbar-back{
+background-image:url(../images/top-toolbar-back.jpg);
+background-repeat:no-repeat;
+background-position:-10px 0px;
+margin-left:-10px;
+padding-left:10px;
+}
\ No newline at end of file
Added:
trunk/registry/modules/webapps/src/main/webapp/admin/images/download-small.gif
==============================================================================
Binary file. No diff available.
Added:
trunk/registry/modules/webapps/src/main/webapp/admin/images/icon-download.jpg
==============================================================================
Binary file. No diff available.
Added:
trunk/registry/modules/webapps/src/main/webapp/admin/images/icon-feed-small.gif
==============================================================================
Binary file. No diff available.
Modified:
trunk/registry/modules/webapps/src/main/webapp/admin/images/icon-folder-small.gif
==============================================================================
Binary files. No diff available.
Added: trunk/registry/modules/webapps/src/main/webapp/admin/images/icon-home.gif
==============================================================================
Binary file. No diff available.
Added: trunk/registry/modules/webapps/src/main/webapp/admin/images/icon-home.jpg
==============================================================================
Binary file. No diff available.
Added:
trunk/registry/modules/webapps/src/main/webapp/admin/images/promotionBackground.jpg
==============================================================================
Binary file. No diff available.
Added:
trunk/registry/modules/webapps/src/main/webapp/admin/images/top-toolbar-back.jpg
==============================================================================
Binary file. No diff available.
Modified: trunk/registry/modules/webapps/src/main/webapp/admin/js/common.js
==============================================================================
--- trunk/registry/modules/webapps/src/main/webapp/admin/js/common.js
(original)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/js/common.js Wed Jan
23 05:55:03 2008
@@ -189,6 +189,12 @@
divx.style.display='table-row';
if(divx.nodeName == 'TD')
divx.style.display='table-cell';
+ if(divx.nodeName == 'A')
+ divx.style.display='inline';
+ if(divx.nodeName == 'SPAN')
+ divx.style.display='inline';
+ if(divx.nodeName == 'INPUT')
+ divx.style.display='inline';
//link.innerHTML=textHidden;
}
/* hide the initaly shown object */
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
Wed Jan 23 05:55:03 2008
@@ -56,19 +56,19 @@
<% if (errorMessage != null) { %>
<div><%=errorMessage%></div>
<% } %>
-<div style="height:40px;">
+<div style="height:40px;" class="top-toolbar-back">
<% if (details.isCollection()) { %>
- <h1 class="h1collection">
+ <h1>
<% } else { %>
- <h1 class="h1resource">
+ <h1>
<% } %>
- <a href="/wso2registry/atom<%=details.getPath()%>"
target="_blank">[Atom]</a>
+ <a href="/wso2registry/atom<%=details.getPath()%>"
target="_blank"><img border="0"
src="/wso2registry/admin/images/icon-feed-small.gif" /></a>
<%
List iNavPaths = details.getNavigatablePaths();
if (iNavPaths.size() > 0) {
ResourcePath rootPath = (ResourcePath) iNavPaths.get(0);
%>
- <a
href="/wso2registry/web<%=rootPath.getNavigatePath()%>"><%=rootPath.getNavigateName()%></a>
+ <a href="/wso2registry/web<%=rootPath.getNavigatePath()%>"><img
border="0" src="/wso2registry/admin/images/icon-home.gif" /></a>
<%
if (iNavPaths.size() > 1) {
@@ -116,7 +116,7 @@
</th>
<td>
<% if (!details.isPutAllowed()) { %>
- <span class="helpText">Sorry. You don't have
permisions to add new properties.</span>
+ <!-- span class="helpText">Sorry. You don't
have permisions to add new properties.</span -->
<%
} else if (details.isVersionView()) {
%>
@@ -371,7 +371,7 @@
<th>Created Date</th>
<th>Author</th>
<th>Rating</th>
- <th></th>
+ <th colspan="2" style="width:50px;">Action</th>
</tr>
<%
@@ -381,17 +381,31 @@
ResourceData resourceData = (ResourceData) iterator.next();
%>
<tr id="1">
- <td><a href="/wso2registry/atom<%=resourceData.getResourcePath()%>"
target="_blank">[Atom]</a><% if (resourceData.getResourceType() ==
ResourceData.COLLECTION) { %><a
href="/wso2registry/web/<%=resourceData.getRelativePath()%>"
class="folder-small"><%=resourceData.getName()%></a><% } else { %><a
href="/wso2registry/web/<%=resourceData.getRelativePath()%>"
class="resource-small"><%=resourceData.getName()%></a><% } %></td>
+ <td>
+ <% if (resourceData.getResourceType() ==
ResourceData.COLLECTION) { %>
+ <img
src="/wso2registry/admin/images/icon-folder-small.gif"
style="margin-right:5px;" /><a
href="/wso2registry/web/<%=resourceData.getRelativePath()%>"><%=resourceData.getName()%></a>
+ <% } else { %>
+ <div style="margin-left:20px;">
+ <a
href="/wso2registry/web/<%=resourceData.getRelativePath()%>"
id="resourceView"><%=resourceData.getName()%></a>
+ <input type="text" id="resourceEdit"
style="display:none" value="<%=resourceData.getName()%>" />
+ | <a
href="/wso2registry/resources<%=resourceData.getResourcePath()%>"
target="_blank" title="Download" ><img
src="/wso2registry/admin/images/icon-download.jpg" border="0" align="top" /></a>
+ | <a href="#" title="Edit Resource Name"
onclick="showHideCommon('resourceEdit');showHideCommon('resourceView');
showHideCommon('resourceSaveButton');showHideCommon('resourceEditButton');"
id="resourceEditButton"><img src="/wso2registry/admin/images/icon-edit.gif"
border="0" align="top" id="resourceEditButton" /></a>
+ <a href="#"
onclick="showHideCommon('resourceEdit');showHideCommon('resourceView');
showHideCommon('resourceSaveButton');showHideCommon('resourceEditButton');"
id="resourceSaveButton" style="display:none;"><img border="0" align="top"
title="Save" src="/wso2registry/admin/images/save-button.gif" /></a>
+ </div>
+ <% } %>
+ </td>
<td><%=resourceData.getCreatedOn()%></td>
<td><%=resourceData.getAuthorUserName()%></td>
<td>
- <img
src="/wso2registry/admin/images/r<%=resourceData.getAverageStars()[0]%>.gif" />
- <img
src="/wso2registry/admin/images/r<%=resourceData.getAverageStars()[1]%>.gif" />
- <img
src="/wso2registry/admin/images/r<%=resourceData.getAverageStars()[2]%>.gif" />
- <img
src="/wso2registry/admin/images/r<%=resourceData.getAverageStars()[3]%>.gif" />
- <img
src="/wso2registry/admin/images/r<%=resourceData.getAverageStars()[4]%>.gif" />
+ <img
src="/wso2registry/admin/images/r<%=resourceData.getAverageStars()[0]%>.gif"
align="top" />
+ <img
src="/wso2registry/admin/images/r<%=resourceData.getAverageStars()[1]%>.gif"
align="top" />
+ <img
src="/wso2registry/admin/images/r<%=resourceData.getAverageStars()[2]%>.gif"
align="top" />
+ <img
src="/wso2registry/admin/images/r<%=resourceData.getAverageStars()[3]%>.gif"
align="top" />
+ <img
src="/wso2registry/admin/images/r<%=resourceData.getAverageStars()[4]%>.gif"
align="top" />
(<%=resourceData.getAverageRating()%>)
</td>
+ <td><a href="/wso2registry/atom<%=resourceData.getResourcePath()%>"
target="_blank"><img border="0"
src="/wso2registry/admin/images/icon-feed-small.gif"/></a>
+ </td>
<td>
<% if (resourceData.isDeleteAllowed() && !details.isVersionView())
{ %><a
href="/wso2registry/system/deleteResource?resourcePath=<%=resourceData.getResourcePath()%>"
title="Delete" style="margin-left:5px;"><img
src="/wso2registry/admin/images/icon-trash.gif" border="0" /></a> <% } %>
</td>
@@ -406,7 +420,7 @@
<% } else { %>
<br/>
-<a href="/wso2registry/resources<%=details.getContentPath()%>" target="_blank"
class="download-link"><img src="/wso2registry/admin/images/icon-download.jpg"
border="0" align="middle" /> Download</a>
+<a href="/wso2registry/resources<%=details.getContentPath()%>" target="_blank"
class="download-link"><img src="/wso2registry/admin/images/icon-download.jpg"
border="0" align="top" /> Download</a>
<br/>
<% } %>
@@ -547,7 +561,7 @@
<td align="right" valign="top">
<table cellpadding="0" cellspacing="0" border="0"
class="toolBarTable">
<tr>
- <td><% if (details.isLoggedIn() &&
!details.isVersionView()) { %><a href="#"
onclick="showHideCommon('add-comment-div');expandIfNot('comments');"><img
src="/wso2registry/admin/images/universal-add.gif" border="0" valign="top"
style="margin-top:-10px;_margin-top:5px;" title="Add New Comment" /></a><% }
%><a href="/wso2registry/atom<%=details.getPath()%>;comments"
target="_blank">[Atom]</a></td>
+ <td><% if (details.isLoggedIn() &&
!details.isVersionView()) { %><a href="#"
onclick="showHideCommon('add-comment-div');expandIfNot('comments');"><img
src="/wso2registry/admin/images/universal-add.gif" border="0" valign="top"
style="margin-top:-10px;_margin-top:5px;" title="Add New Comment" /></a><% }
%><a href="/wso2registry/atom<%=details.getPath()%>;comments"
target="_blank"><img border="0"
src="/wso2registry/admin/images/icon-feed-small.gif"
style="margin-top:-5px;padding-left:10px;" /></a></td>
<td>
<a href="#"
onclick="showHideCommon('commentsIconExpanded');showHideCommon('commentsIconMinimized');showHideCommon('commentsExpanded');showHideCommon('commentsMinimized');">
<img
src="/wso2registry/admin/images/icon-expanded.gif" border="0" align="top"
id="commentsIconExpanded" style="margin-top:-4px;" />
_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev